Skip to content

Commit

Permalink
Fix #ifdef guards in "power.cpp"
Browse files Browse the repository at this point in the history
- To allow compilation using Makefile
  • Loading branch information
marciot committed Jul 14, 2021
1 parent f4b0474 commit 1822bdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Marlin/src/feature/power.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include "../gcode/gcode.h"
#endif

#if EITHER(PSU_CONTROL, AUTO_POWER_CONTROL)

Power powerManager;
bool Power::psu_on;

Expand Down Expand Up @@ -214,3 +216,5 @@ void Power::power_off() {
#endif

#endif // AUTO_POWER_CONTROL

#endif // EITHER(PSU_CONTROL, AUTO_POWER_CONTROL)

0 comments on commit 1822bdd

Please sign in to comment.