瀏覽代碼

Matching mat.bed_temp condition

Scott Lahteine 4 年之前
父節點
當前提交
e78f1237ea
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/gcode/lcd/M145.cpp

+ 1
- 1
Marlin/src/gcode/lcd/M145.cpp 查看文件

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

Loading…
取消
儲存