From 56486c5c0eabdb8d44ac47babbde192621ee084a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 8 Apr 2018 04:00:26 -0500 Subject: [PATCH] Apply const to manage_inactivity --- Marlin/src/Marlin.cpp | 2 +- Marlin/src/Marlin.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/Marlin.cpp b/Marlin/src/Marlin.cpp index 61479a8aad..7648a1a7b3 100644 --- a/Marlin/src/Marlin.cpp +++ b/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(); diff --git a/Marlin/src/Marlin.h b/Marlin/src/Marlin.h index 25f2e08973..48f3ffede9 100644 --- a/Marlin/src/Marlin.h +++ b/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)