Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
0fed46360c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp Parādīt failu

@@ -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:");

Notiek ielāde…
Atcelt
Saglabāt