Explorar el Código

Wrap some macros

Scott Lahteine hace 5 años
padre
commit
97e47b4494
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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…
Cancelar
Guardar