Apply const to manage_inactivity

This commit is contained in:
Scott Lahteine 2018-04-08 04:00:26 -05:00
parent a6485456df
commit 56486c5c0e
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ void disable_all_steppers() {
* - Check if cooling fan needs to be switched on * - Check if cooling fan needs to be switched on
* - Check if an idle but hot extruder needs filament extruded (EXTRUDER_RUNOUT_PREVENT) * - Check if an idle but hot extruder needs filament extruded (EXTRUDER_RUNOUT_PREVENT)
*/ */
void manage_inactivity(bool ignore_stepper_queue/*=false*/) { void manage_inactivity(const bool ignore_stepper_queue/*=false*/) {
#if ENABLED(FILAMENT_RUNOUT_SENSOR) #if ENABLED(FILAMENT_RUNOUT_SENSOR)
runout.run(); runout.run();

View File

@ -40,7 +40,7 @@ void idle(
#endif #endif
); );
void manage_inactivity(bool ignore_stepper_queue = false); void manage_inactivity(const bool ignore_stepper_queue=false);
#if HAS_X2_ENABLE #if HAS_X2_ENABLE
#define enable_X() do{ X_ENABLE_WRITE( X_ENABLE_ON); X2_ENABLE_WRITE( X_ENABLE_ON); }while(0) #define enable_X() do{ X_ENABLE_WRITE( X_ENABLE_ON); X2_ENABLE_WRITE( X_ENABLE_ON); }while(0)