浏览代码

Add variant for MAX6675 in M104

Else will throw error:
@:0 B@:0
Error:No thermistors - no temperature
[ERROR] Error:No thermistors - no temperature

when no bed is defined
AnHardt 10 年前
父节点
当前提交
0fed46360c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp 查看文件

@@ -3152,7 +3152,7 @@ inline void gcode_M104() {
3152 3152
 inline void gcode_M105() {
3153 3153
   if (setTargetedHotend(105)) return;
3154 3154
 
3155
-  #if HAS_TEMP_0 || HAS_TEMP_BED
3155
+  #if HAS_TEMP_0 || HAS_TEMP_BED || defined(HEATER_0_USES_MAX6675)
3156 3156
     SERIAL_PROTOCOLPGM("ok");
3157 3157
     #if HAS_TEMP_0
3158 3158
       SERIAL_PROTOCOLPGM(" T:");

正在加载...
取消
保存