Browse Source

Matching mat.bed_temp condition

Scott Lahteine 4 years ago
parent
commit
e78f1237ea
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/lcd/M145.cpp

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

45
       if (parser.seenval('H'))
45
       if (parser.seenval('H'))
46
         mat.hotend_temp = constrain(parser.value_int(), EXTRUDE_MINTEMP, (HEATER_0_MAXTEMP) - (HOTEND_OVERSHOOT));
46
         mat.hotend_temp = constrain(parser.value_int(), EXTRUDE_MINTEMP, (HEATER_0_MAXTEMP) - (HOTEND_OVERSHOOT));
47
     #endif
47
     #endif
48
-    #if TEMP_SENSOR_BED != 0
48
+    #if HAS_HEATED_BED
49
       if (parser.seenval('B'))
49
       if (parser.seenval('B'))
50
         mat.bed_temp = constrain(parser.value_int(), BED_MINTEMP, BED_MAX_TARGET);
50
         mat.bed_temp = constrain(parser.value_int(), BED_MINTEMP, BED_MAX_TARGET);
51
     #endif
51
     #endif

Loading…
Cancel
Save