Trust the bootloader to clear globals

This commit is contained in:
Scott Lahteine
2018-03-21 02:43:10 -05:00
parent b24099c9d0
commit d57adbb88b

View File

@@ -489,27 +489,27 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
new_fanSpeeds[FAN_COUNT]; new_fanSpeeds[FAN_COUNT];
#endif #endif
#if ENABLED(PROBING_FANS_OFF) #if ENABLED(PROBING_FANS_OFF)
bool fans_paused = false; bool fans_paused; // = false;
int16_t paused_fanSpeeds[FAN_COUNT] = { 0 }; int16_t paused_fanSpeeds[FAN_COUNT] = { 0 };
#endif #endif
#endif #endif
#if ENABLED(USE_CONTROLLER_FAN) #if ENABLED(USE_CONTROLLER_FAN)
int controllerFanSpeed = 0; int controllerFanSpeed; // = 0;
#endif #endif
// The active extruder (tool). Set with T<extruder> command. // 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. // 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 // For M109 and M190, this flag may be cleared (by M108) to exit the wait loop
volatile bool wait_for_heatup = true; volatile bool wait_for_heatup = true;
// For M0/M1, this flag may be cleared (by M108) to exit the wait-for-user loop // For M0/M1, this flag may be cleared (by M108) to exit the wait-for-user loop
#if HAS_RESUME_CONTINUE #if HAS_RESUME_CONTINUE
volatile bool wait_for_user = false; volatile bool wait_for_user; // = false;
#endif #endif
#if HAS_AUTO_REPORTING || ENABLED(HOST_KEEPALIVE_FEATURE) #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' }; const char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' };
// Number of characters read in the current line of serial input // Number of characters read in the current line of serial input
static int serial_count = 0; static int serial_count; // = 0;
// Inactivity shutdown // Inactivity shutdown
millis_t previous_cmd_ms = 0; millis_t previous_cmd_ms; // = 0;
static millis_t max_inactive_time = 0; static millis_t max_inactive_time; // = 0;
static millis_t stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL; static millis_t stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
// Buzzer - I2C on the LCD or a BEEPER_PIN // Buzzer - I2C on the LCD or a BEEPER_PIN
@@ -650,7 +650,7 @@ uint8_t target_extruder;
float cartes[XYZ] = { 0 }; float cartes[XYZ] = { 0 };
#if ENABLED(FILAMENT_WIDTH_SENSOR) #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. float filament_width_nominal = DEFAULT_NOMINAL_FILAMENT_DIA, // Nominal filament width. Change with M404.
filament_width_meas = DEFAULT_MEASURED_FILAMENT_DIA; // Measured filament diameter filament_width_meas = DEFAULT_MEASURED_FILAMENT_DIA; // Measured filament diameter
uint8_t meas_delay_cm = MEASUREMENT_DELAY_CM; // Distance delay setting uint8_t meas_delay_cm = MEASUREMENT_DELAY_CM; // Distance delay setting