From 9fd1016bb1ddb21e2c736da9fbdd802708b91b96 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 21 Mar 2018 05:45:23 -0500 Subject: [PATCH] Trust the bootloader to clear globals --- Marlin/src/Marlin.cpp | 10 +++++----- Marlin/src/feature/filwidth.cpp | 2 +- Marlin/src/module/motion.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Marlin/src/Marlin.cpp b/Marlin/src/Marlin.cpp index 7317fb4b4..41672e9aa 100644 --- a/Marlin/src/Marlin.cpp +++ b/Marlin/src/Marlin.cpp @@ -174,7 +174,7 @@ bool axis_homed[XYZ] = { false }, axis_known_position[XYZ] = { false }; new_fanSpeeds[FAN_COUNT]; #endif #if ENABLED(PROBING_FANS_OFF) - bool fans_paused = false; + bool fans_paused; // = false; int16_t paused_fanSpeeds[FAN_COUNT] = { 0 }; #endif #endif @@ -184,7 +184,7 @@ volatile bool wait_for_heatup = true; // For M0/M1, this flag may be cleared (by M108) to exit the wait-for-user loop #if HAS_RESUME_CONTINUE - volatile bool wait_for_user = false; + volatile bool wait_for_user; // = false; #endif #if HAS_AUTO_REPORTING || ENABLED(HOST_KEEPALIVE_FEATURE) @@ -192,12 +192,12 @@ volatile bool wait_for_heatup = true; #endif // Inactivity shutdown -millis_t max_inactive_time = 0, +millis_t max_inactive_time, // = 0 stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL; #ifdef CHDK - millis_t chdkHigh = 0; - bool chdkActive = false; + millis_t chdkHigh; // = 0; + bool chdkActive; // = false; #endif #if ENABLED(PID_EXTRUSION_SCALING) diff --git a/Marlin/src/feature/filwidth.cpp b/Marlin/src/feature/filwidth.cpp index eca024f7d..98743713c 100644 --- a/Marlin/src/feature/filwidth.cpp +++ b/Marlin/src/feature/filwidth.cpp @@ -26,7 +26,7 @@ #include "filwidth.h" -bool filament_sensor = false; // M405/M406 turns filament sensor control ON/OFF. +bool filament_sensor; // = false; // M405/M406 turns filament sensor control ON/OFF. float filament_width_nominal = DEFAULT_NOMINAL_FILAMENT_DIA, // Nominal filament width. Change with M404. filament_width_meas = DEFAULT_MEASURED_FILAMENT_DIA; // Measured filament diameter uint8_t meas_delay_cm = MEASUREMENT_DELAY_CM; // Distance delay setting diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index f38e7a610..2f04af07b 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -69,7 +69,7 @@ XYZ_CONSTS(float, home_bump_mm, HOME_BUMP_MM); XYZ_CONSTS(signed char, home_dir, HOME_DIR); // Relative Mode. Enable with G91, disable with G90. -bool relative_mode = false; +bool relative_mode; // = false; /** * Cartesian Current Position @@ -89,7 +89,7 @@ float destination[XYZE] = { 0.0 }; // The active extruder (tool). Set with T command. -uint8_t active_extruder = 0; +uint8_t active_extruder; // = 0; // Extruder offsets #if HOTENDS > 1