Trust the bootloader to clear globals
This commit is contained in:
parent
045ee28c50
commit
9fd1016bb1
3 changed files with 8 additions and 8 deletions
|
@ -174,7 +174,7 @@ bool axis_homed[XYZ] = { false }, axis_known_position[XYZ] = { false };
|
||||||
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
|
||||||
|
@ -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
|
// 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)
|
||||||
|
@ -192,12 +192,12 @@ volatile bool wait_for_heatup = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Inactivity shutdown
|
// Inactivity shutdown
|
||||||
millis_t max_inactive_time = 0,
|
millis_t max_inactive_time, // = 0
|
||||||
stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
|
stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
|
||||||
|
|
||||||
#ifdef CHDK
|
#ifdef CHDK
|
||||||
millis_t chdkHigh = 0;
|
millis_t chdkHigh; // = 0;
|
||||||
bool chdkActive = false;
|
bool chdkActive; // = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(PID_EXTRUSION_SCALING)
|
#if ENABLED(PID_EXTRUSION_SCALING)
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include "filwidth.h"
|
#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.
|
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
|
||||||
|
|
|
@ -69,7 +69,7 @@ XYZ_CONSTS(float, home_bump_mm, HOME_BUMP_MM);
|
||||||
XYZ_CONSTS(signed char, home_dir, HOME_DIR);
|
XYZ_CONSTS(signed char, home_dir, HOME_DIR);
|
||||||
|
|
||||||
// Relative Mode. Enable with G91, disable with G90.
|
// Relative Mode. Enable with G91, disable with G90.
|
||||||
bool relative_mode = false;
|
bool relative_mode; // = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cartesian Current Position
|
* Cartesian Current Position
|
||||||
|
@ -89,7 +89,7 @@ float destination[XYZE] = { 0.0 };
|
||||||
|
|
||||||
|
|
||||||
// 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;
|
||||||
|
|
||||||
// Extruder offsets
|
// Extruder offsets
|
||||||
#if HOTENDS > 1
|
#if HOTENDS > 1
|
||||||
|
|
Reference in a new issue