Fix up PSU_CONTROL checks
This commit is contained in:
@@ -219,7 +219,7 @@ void setup_powerhold() {
|
||||
#if HAS_SUICIDE
|
||||
OUT_WRITE(SUICIDE_PIN, HIGH);
|
||||
#endif
|
||||
#if HAS_POWER_SWITCH
|
||||
#if ENABLED(PSU_CONTROL)
|
||||
#if ENABLED(PS_DEFAULT_OFF)
|
||||
powersupply_on = true; PSU_OFF();
|
||||
#else
|
||||
@@ -721,7 +721,7 @@ void minkill(const bool steppers_off/*=false*/) {
|
||||
// Power off all steppers (for M112) or just the E steppers
|
||||
steppers_off ? disable_all_steppers() : disable_e_steppers();
|
||||
|
||||
#if HAS_POWER_SWITCH
|
||||
#if ENABLED(PSU_CONTROL)
|
||||
PSU_OFF();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user