From d57adbb88b7a91b550e297b7abee71ca9d50885c Mon Sep 17 00:00:00 2001 From: Scott Lahteine <github@thinkyhead.com> Date: Wed, 21 Mar 2018 02:43:10 -0500 Subject: [PATCH] Trust the bootloader to clear globals --- Marlin/Marlin_main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 2fdc7451110..ee0a121d27f 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -489,27 +489,27 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS }, 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 #if ENABLED(USE_CONTROLLER_FAN) - int controllerFanSpeed = 0; + int controllerFanSpeed; // = 0; #endif // The active extruder (tool). Set with T<extruder> command. -uint8_t active_extruder = 0; +uint8_t active_extruder; // = 0; // Relative Mode. Enable with G91, disable with G90. -static bool relative_mode = false; +static bool relative_mode; // = false; // For M109 and M190, this flag may be cleared (by M108) to exit the wait loop 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) @@ -519,11 +519,11 @@ volatile bool wait_for_heatup = true; const char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' }; // Number of characters read in the current line of serial input -static int serial_count = 0; +static int serial_count; // = 0; // Inactivity shutdown -millis_t previous_cmd_ms = 0; -static millis_t max_inactive_time = 0; +millis_t previous_cmd_ms; // = 0; +static millis_t max_inactive_time; // = 0; static millis_t stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL; // Buzzer - I2C on the LCD or a BEEPER_PIN @@ -650,7 +650,7 @@ uint8_t target_extruder; float cartes[XYZ] = { 0 }; #if ENABLED(FILAMENT_WIDTH_SENSOR) - bool filament_sensor = false; // M405 turns on filament sensor control. M406 turns it off. + bool filament_sensor; // = false; // M405 turns on filament sensor control. M406 turns it 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