Quellcode durchsuchen

Wrap some macros

Scott Lahteine vor 5 Jahren
Ursprung
Commit
97e47b4494
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1
    1
      Marlin/src/gcode/bedlevel/G26.cpp
  2. 1
    1
      Marlin/src/gcode/lcd/M145.cpp

+ 1
- 1
Marlin/src/gcode/bedlevel/G26.cpp Datei anzeigen

582
 
582
 
583
   if (parser.seenval('H')) {
583
   if (parser.seenval('H')) {
584
     g26_hotend_temp = parser.value_celsius();
584
     g26_hotend_temp = parser.value_celsius();
585
-    if (!WITHIN(g26_hotend_temp, 165, (HEATER_0_MAXTEMP - HOTEND_OVERSHOOT))) {
585
+    if (!WITHIN(g26_hotend_temp, 165, (HEATER_0_MAXTEMP) - (HOTEND_OVERSHOOT))) {
586
       SERIAL_ECHOLNPGM("?Specified nozzle temperature not plausible.");
586
       SERIAL_ECHOLNPGM("?Specified nozzle temperature not plausible.");
587
       return;
587
       return;
588
     }
588
     }

+ 1
- 1
Marlin/src/gcode/lcd/M145.cpp Datei anzeigen

43
     int v;
43
     int v;
44
     if (parser.seenval('H')) {
44
     if (parser.seenval('H')) {
45
       v = parser.value_int();
45
       v = parser.value_int();
46
-      ui.preheat_hotend_temp[material] = constrain(v, EXTRUDE_MINTEMP, HEATER_0_MAXTEMP - HOTEND_OVERSHOOT);
46
+      ui.preheat_hotend_temp[material] = constrain(v, EXTRUDE_MINTEMP, (HEATER_0_MAXTEMP) - (HOTEND_OVERSHOOT));
47
     }
47
     }
48
     if (parser.seenval('F')) {
48
     if (parser.seenval('F')) {
49
       v = parser.value_int();
49
       v = parser.value_int();

Laden…
Abbrechen
Speichern