Преглед изворни кода

Trust the bootloader to clear globals

Scott Lahteine пре 7 година
родитељ
комит
9fd1016bb1
3 измењених фајлова са 8 додато и 8 уклоњено
  1. 5
    5
      Marlin/src/Marlin.cpp
  2. 1
    1
      Marlin/src/feature/filwidth.cpp
  3. 2
    2
      Marlin/src/module/motion.cpp

+ 5
- 5
Marlin/src/Marlin.cpp Прегледај датотеку

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

+ 1
- 1
Marlin/src/feature/filwidth.cpp Прегледај датотеку

@@ -26,7 +26,7 @@
26 26
 
27 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 30
 float filament_width_nominal = DEFAULT_NOMINAL_FILAMENT_DIA,  // Nominal filament width. Change with M404.
31 31
       filament_width_meas = DEFAULT_MEASURED_FILAMENT_DIA;    // Measured filament diameter
32 32
 uint8_t meas_delay_cm = MEASUREMENT_DELAY_CM;                 // Distance delay setting

+ 2
- 2
Marlin/src/module/motion.cpp Прегледај датотеку

@@ -69,7 +69,7 @@ XYZ_CONSTS(float, home_bump_mm,   HOME_BUMP_MM);
69 69
 XYZ_CONSTS(signed char, home_dir, HOME_DIR);
70 70
 
71 71
 // Relative Mode. Enable with G91, disable with G90.
72
-bool relative_mode = false;
72
+bool relative_mode; // = false;
73 73
 
74 74
 /**
75 75
  * Cartesian Current Position
@@ -89,7 +89,7 @@ float destination[XYZE] = { 0.0 };
89 89
 
90 90
 
91 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 94
 // Extruder offsets
95 95
 #if HOTENDS > 1

Loading…
Откажи
Сачувај