Browse Source

🎨 Misc. issue review patches

Scott Lahteine 2 years ago
parent
commit
a7549aac5c

+ 4
- 4
Marlin/Configuration_adv.h View File

@@ -329,14 +329,14 @@
329 329
  * Thermal Protection parameters for the laser cooler.
330 330
  */
331 331
 #if ENABLED(THERMAL_PROTECTION_COOLER)
332
-  #define THERMAL_PROTECTION_COOLER_PERIOD    10 // Seconds
333
-  #define THERMAL_PROTECTION_COOLER_HYSTERESIS 3 // Degrees Celsius
332
+  #define THERMAL_PROTECTION_COOLER_PERIOD     10 // Seconds
333
+  #define THERMAL_PROTECTION_COOLER_HYSTERESIS  3 // Degrees Celsius
334 334
 
335 335
   /**
336 336
    * Laser cooling watch settings (M143/M193).
337 337
    */
338
-  #define WATCH_COOLER_TEMP_PERIOD            60 // Seconds
339
-  #define WATCH_COOLER_TEMP_INCREASE           3 // Degrees Celsius
338
+  #define WATCH_COOLER_TEMP_PERIOD             60 // Seconds
339
+  #define WATCH_COOLER_TEMP_INCREASE            3 // Degrees Celsius
340 340
 #endif
341 341
 
342 342
 #if ENABLED(PIDTEMP)

+ 2
- 2
Marlin/src/gcode/feature/pause/M600.cpp View File

@@ -106,7 +106,7 @@ void GcodeSuite::M600() {
106 106
     // Change toolhead if specified
107 107
     const uint8_t active_extruder_before_filament_change = active_extruder;
108 108
     if (active_extruder != target_extruder && TERN1(DUAL_X_CARRIAGE, !idex_is_duplicating()))
109
-      tool_change(target_extruder, false);
109
+      tool_change(target_extruder);
110 110
   #endif
111 111
 
112 112
   // Initial retract before move to filament change position
@@ -159,7 +159,7 @@ void GcodeSuite::M600() {
159 159
   #if HAS_MULTI_EXTRUDER
160 160
     // Restore toolhead if it was changed
161 161
     if (active_extruder_before_filament_change != active_extruder)
162
-      tool_change(active_extruder_before_filament_change, false);
162
+      tool_change(active_extruder_before_filament_change);
163 163
   #endif
164 164
 
165 165
   TERN_(MIXING_EXTRUDER, mixer.T(old_mixing_tool)); // Restore original mixing tool

+ 5
- 5
Marlin/src/gcode/feature/pause/M701_M702.cpp View File

@@ -85,7 +85,7 @@ void GcodeSuite::M701() {
85 85
     // Change toolhead if specified
86 86
     uint8_t active_extruder_before_filament_change = active_extruder;
87 87
     if (active_extruder != target_extruder)
88
-      tool_change(target_extruder, false);
88
+      tool_change(target_extruder);
89 89
   #endif
90 90
 
91 91
   auto move_z_by = [](const_float_t zdist) {
@@ -124,7 +124,7 @@ void GcodeSuite::M701() {
124 124
   #if HAS_MULTI_EXTRUDER && (HAS_PRUSA_MMU1 || !HAS_MMU)
125 125
     // Restore toolhead if it was changed
126 126
     if (active_extruder_before_filament_change != active_extruder)
127
-      tool_change(active_extruder_before_filament_change, false);
127
+      tool_change(active_extruder_before_filament_change);
128 128
   #endif
129 129
 
130 130
   TERN_(MIXING_EXTRUDER, mixer.T(old_mixing_tool)); // Restore original mixing tool
@@ -188,7 +188,7 @@ void GcodeSuite::M702() {
188 188
     // Change toolhead if specified
189 189
     uint8_t active_extruder_before_filament_change = active_extruder;
190 190
     if (active_extruder != target_extruder)
191
-      tool_change(target_extruder, false);
191
+      tool_change(target_extruder);
192 192
   #endif
193 193
 
194 194
   // Lift Z axis
@@ -202,7 +202,7 @@ void GcodeSuite::M702() {
202 202
     #if BOTH(HAS_MULTI_EXTRUDER, FILAMENT_UNLOAD_ALL_EXTRUDERS)
203 203
       if (!parser.seenval('T')) {
204 204
         HOTEND_LOOP() {
205
-          if (e != active_extruder) tool_change(e, false);
205
+          if (e != active_extruder) tool_change(e);
206 206
           unload_filament(-fc_settings[e].unload_length, true, PAUSE_MODE_UNLOAD_FILAMENT);
207 207
         }
208 208
       }
@@ -228,7 +228,7 @@ void GcodeSuite::M702() {
228 228
   #if HAS_MULTI_EXTRUDER && (HAS_PRUSA_MMU1 || !HAS_MMU)
229 229
     // Restore toolhead if it was changed
230 230
     if (active_extruder_before_filament_change != active_extruder)
231
-      tool_change(active_extruder_before_filament_change, false);
231
+      tool_change(active_extruder_before_filament_change);
232 232
   #endif
233 233
 
234 234
   TERN_(MIXING_EXTRUDER, mixer.T(old_mixing_tool)); // Restore original mixing tool

+ 1
- 1
Marlin/src/lcd/extui/anycubic_i3mega/anycubic_i3mega_lcd.h View File

@@ -39,7 +39,7 @@ enum AnycubicMediaPauseState {
39 39
   AMPAUSESTATE_PARKING,
40 40
   AMPAUSESTATE_PARKED,
41 41
   AMPAUSESTATE_FILAMENT_OUT,
42
-  AMPAUSESTATE_FIAMENT_PRUGING,
42
+  AMPAUSESTATE_FILAMENT_PURGING,
43 43
   AMPAUSESTATE_HEATER_TIMEOUT,
44 44
   AMPAUSESTATE_REHEATING,
45 45
   AMPAUSESTATE_REHEAT_FINISHED

+ 4
- 4
Marlin/src/module/temperature.cpp View File

@@ -593,7 +593,7 @@ volatile bool Temperature::raw_temps_ready = false;
593 593
     #define ONHEATINGSTART() C_TERN(ischamber, printerEventLEDs.onChamberHeatingStart(), B_TERN(isbed, printerEventLEDs.onBedHeatingStart(), printerEventLEDs.onHotendHeatingStart()))
594 594
     #define ONHEATING(S,C,T) C_TERN(ischamber, printerEventLEDs.onChamberHeating(S,C,T), B_TERN(isbed, printerEventLEDs.onBedHeating(S,C,T), printerEventLEDs.onHotendHeating(S,C,T)))
595 595
 
596
-    #define WATCH_PID BOTH(WATCH_CHAMBER, PIDTEMPCHAMBER) || BOTH(WATCH_BED, PIDTEMPBED) || BOTH(WATCH_HOTENDS, PIDTEMP)
596
+    #define WATCH_PID DISABLED(NO_WATCH_PID_TUNING) && (BOTH(WATCH_CHAMBER, PIDTEMPCHAMBER) || BOTH(WATCH_BED, PIDTEMPBED) || BOTH(WATCH_HOTENDS, PIDTEMP))
597 597
 
598 598
     #if WATCH_PID
599 599
       #if BOTH(THERMAL_PROTECTION_CHAMBER, PIDTEMPCHAMBER)
@@ -684,8 +684,8 @@ volatile bool Temperature::raw_temps_ready = false;
684 684
             if (cycles > 2) {
685 685
               const float Ku = (4.0f * d) / (float(M_PI) * (maxT - minT) * 0.5f),
686 686
                           Tu = float(t_low + t_high) * 0.001f,
687
-                          pf = ischamber ? 0.2f : (isbed ? 0.2f : 0.6f),
688
-                          df = ischamber ? 1.0f / 3.0f : (isbed ? 1.0f / 3.0f : 1.0f / 8.0f);
687
+                          pf = (ischamber || isbed) ? 0.2f : 0.6f,
688
+                          df = (ischamber || isbed) ? 1.0f / 3.0f : 1.0f / 8.0f;
689 689
 
690 690
               tune_pid.Kp = Ku * pf;
691 691
               tune_pid.Ki = tune_pid.Kp * 2.0f / Tu;
@@ -731,7 +731,7 @@ volatile bool Temperature::raw_temps_ready = false;
731 731
             if (!heated) {                                            // If not yet reached target...
732 732
               if (current_temp > next_watch_temp) {                   // Over the watch temp?
733 733
                 next_watch_temp = current_temp + watch_temp_increase; // - set the next temp to watch for
734
-                temp_change_ms = ms + SEC_TO_MS(watch_temp_period);     // - move the expiration timer up
734
+                temp_change_ms = ms + SEC_TO_MS(watch_temp_period);   // - move the expiration timer up
735 735
                 if (current_temp > watch_temp_target) heated = true;  // - Flag if target temperature reached
736 736
               }
737 737
               else if (ELAPSED(ms, temp_change_ms))                   // Watch timer expired

Loading…
Cancel
Save