Finish AUTO_POWER_CONTROL implementation

Followup to #9503
This commit is contained in:
Scott Lahteine
2018-02-19 16:12:04 -06:00
parent fc460fff94
commit 73cd34b121
2 changed files with 20 additions and 0 deletions

View File

@ -272,6 +272,9 @@ void quickstop_stepper() {
}
void enable_all_steppers() {
#if ENABLED(AUTO_POWER_CONTROL)
powerManager.power_on();
#endif
enable_X();
enable_Y();
enable_Z();
@ -411,6 +414,10 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
controllerfan_update(); // Check if fan should be turned on to cool stepper drivers down
#endif
#if ENABLED(AUTO_POWER_CONTROL)
powerManager.check();
#endif
#if ENABLED(EXTRUDER_RUNOUT_PREVENT)
if (thermalManager.degHotend(active_extruder) > EXTRUDER_RUNOUT_MINTEMP
&& ELAPSED(ms, gcode.previous_cmd_ms + (EXTRUDER_RUNOUT_SECONDS) * 1000UL)