Browse Source

Wrap some macros

Scott Lahteine 5 years ago
parent
commit
97e47b4494
2 changed files with 2 additions and 2 deletions
  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 View File

@@ -582,7 +582,7 @@ void GcodeSuite::G26() {
582 582
 
583 583
   if (parser.seenval('H')) {
584 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 586
       SERIAL_ECHOLNPGM("?Specified nozzle temperature not plausible.");
587 587
       return;
588 588
     }

+ 1
- 1
Marlin/src/gcode/lcd/M145.cpp View File

@@ -43,7 +43,7 @@ void GcodeSuite::M145() {
43 43
     int v;
44 44
     if (parser.seenval('H')) {
45 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 48
     if (parser.seenval('F')) {
49 49
       v = parser.value_int();

Loading…
Cancel
Save