parent
f1dfc80332
commit
444b6d6d83
@ -86,6 +86,7 @@ void Power::check() {
|
|||||||
|
|
||||||
void Power::power_on() {
|
void Power::power_on() {
|
||||||
lastPowerOn = millis();
|
lastPowerOn = millis();
|
||||||
|
if (!powersupply_on) {
|
||||||
PSU_PIN_ON();
|
PSU_PIN_ON();
|
||||||
|
|
||||||
#if HAS_TRINAMIC
|
#if HAS_TRINAMIC
|
||||||
@ -93,9 +94,10 @@ void Power::power_on() {
|
|||||||
restore_stepper_drivers();
|
restore_stepper_drivers();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Power::power_off() {
|
void Power::power_off() {
|
||||||
PSU_PIN_OFF();
|
if (powersupply_on) PSU_PIN_OFF();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // AUTO_POWER_CONTROL
|
#endif // AUTO_POWER_CONTROL
|
||||||
|
@ -168,10 +168,6 @@ uint16_t max_display_update_time = 0;
|
|||||||
#define TALL_FONT_CORRECTION 0
|
#define TALL_FONT_CORRECTION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_POWER_SWITCH
|
|
||||||
extern bool powersupply_on;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool no_reentry = false;
|
bool no_reentry = false;
|
||||||
constexpr int8_t menu_bottom = LCD_HEIGHT - (TALL_FONT_CORRECTION);
|
constexpr int8_t menu_bottom = LCD_HEIGHT - (TALL_FONT_CORRECTION);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user