Pārlūkot izejas kodu

Trust the bootloader to clear globals

Scott Lahteine 7 gadus atpakaļ
vecāks
revīzija
9fd1016bb1

+ 5
- 5
Marlin/src/Marlin.cpp Parādīt failu

174
             new_fanSpeeds[FAN_COUNT];
174
             new_fanSpeeds[FAN_COUNT];
175
   #endif
175
   #endif
176
   #if ENABLED(PROBING_FANS_OFF)
176
   #if ENABLED(PROBING_FANS_OFF)
177
-    bool fans_paused = false;
177
+    bool fans_paused; // = false;
178
     int16_t paused_fanSpeeds[FAN_COUNT] = { 0 };
178
     int16_t paused_fanSpeeds[FAN_COUNT] = { 0 };
179
   #endif
179
   #endif
180
 #endif
180
 #endif
184
 
184
 
185
 // For M0/M1, this flag may be cleared (by M108) to exit the wait-for-user loop
185
 // For M0/M1, this flag may be cleared (by M108) to exit the wait-for-user loop
186
 #if HAS_RESUME_CONTINUE
186
 #if HAS_RESUME_CONTINUE
187
-  volatile bool wait_for_user = false;
187
+  volatile bool wait_for_user; // = false;
188
 #endif
188
 #endif
189
 
189
 
190
 #if HAS_AUTO_REPORTING || ENABLED(HOST_KEEPALIVE_FEATURE)
190
 #if HAS_AUTO_REPORTING || ENABLED(HOST_KEEPALIVE_FEATURE)
192
 #endif
192
 #endif
193
 
193
 
194
 // Inactivity shutdown
194
 // Inactivity shutdown
195
-millis_t max_inactive_time = 0,
195
+millis_t max_inactive_time, // = 0
196
          stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
196
          stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
197
 
197
 
198
 #ifdef CHDK
198
 #ifdef CHDK
199
-  millis_t chdkHigh = 0;
200
-  bool chdkActive = false;
199
+  millis_t chdkHigh; // = 0;
200
+  bool chdkActive; // = false;
201
 #endif
201
 #endif
202
 
202
 
203
 #if ENABLED(PID_EXTRUSION_SCALING)
203
 #if ENABLED(PID_EXTRUSION_SCALING)

+ 1
- 1
Marlin/src/feature/filwidth.cpp Parādīt failu

26
 
26
 
27
 #include "filwidth.h"
27
 #include "filwidth.h"
28
 
28
 
29
-bool filament_sensor = false;                                 // M405/M406 turns filament sensor control ON/OFF.
29
+bool filament_sensor; // = false;                             // M405/M406 turns filament sensor control ON/OFF.
30
 float filament_width_nominal = DEFAULT_NOMINAL_FILAMENT_DIA,  // Nominal filament width. Change with M404.
30
 float filament_width_nominal = DEFAULT_NOMINAL_FILAMENT_DIA,  // Nominal filament width. Change with M404.
31
       filament_width_meas = DEFAULT_MEASURED_FILAMENT_DIA;    // Measured filament diameter
31
       filament_width_meas = DEFAULT_MEASURED_FILAMENT_DIA;    // Measured filament diameter
32
 uint8_t meas_delay_cm = MEASUREMENT_DELAY_CM;                 // Distance delay setting
32
 uint8_t meas_delay_cm = MEASUREMENT_DELAY_CM;                 // Distance delay setting

+ 2
- 2
Marlin/src/module/motion.cpp Parādīt failu

69
 XYZ_CONSTS(signed char, home_dir, HOME_DIR);
69
 XYZ_CONSTS(signed char, home_dir, HOME_DIR);
70
 
70
 
71
 // Relative Mode. Enable with G91, disable with G90.
71
 // Relative Mode. Enable with G91, disable with G90.
72
-bool relative_mode = false;
72
+bool relative_mode; // = false;
73
 
73
 
74
 /**
74
 /**
75
  * Cartesian Current Position
75
  * Cartesian Current Position
89
 
89
 
90
 
90
 
91
 // The active extruder (tool). Set with T<extruder> command.
91
 // The active extruder (tool). Set with T<extruder> command.
92
-uint8_t active_extruder = 0;
92
+uint8_t active_extruder; // = 0;
93
 
93
 
94
 // Extruder offsets
94
 // Extruder offsets
95
 #if HOTENDS > 1
95
 #if HOTENDS > 1

Notiek ielāde…
Atcelt
Saglabāt