Browse Source

Apply const to manage_inactivity

pull/1/head
Scott Lahteine 7 years ago
parent
commit
56486c5c0e
  1. 2
      Marlin/src/Marlin.cpp
  2. 2
      Marlin/src/Marlin.h

2
Marlin/src/Marlin.cpp

@ -326,7 +326,7 @@ void disable_all_steppers() {
* - Check if cooling fan needs to be switched on
* - 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)
runout.run();

2
Marlin/src/Marlin.h

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

Loading…
Cancel
Save