Browse Source

Give a dummy response to M105 with zero thermistors (#15568)

Antti Andreimann 4 years ago
parent
commit
d47f29bd4c
2 changed files with 3 additions and 2 deletions
  1. 0
    1
      Marlin/src/core/language.h
  2. 3
    1
      Marlin/src/gcode/temperature/M105.cpp

+ 0
- 1
Marlin/src/core/language.h View File

@@ -168,7 +168,6 @@
168 168
 #define MSG_INVALID_E_STEPPER               "Invalid E stepper"
169 169
 #define MSG_E_STEPPER_NOT_SPECIFIED         "E stepper not specified"
170 170
 #define MSG_INVALID_SOLENOID                "Invalid solenoid"
171
-#define MSG_ERR_NO_THERMISTORS              "No thermistors - no temperature"
172 171
 #define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID
173 172
 #define MSG_COUNT_X                         " Count X:"
174 173
 #define MSG_COUNT_A                         " Count A:"

+ 3
- 1
Marlin/src/gcode/temperature/M105.cpp View File

@@ -39,7 +39,9 @@ void GcodeSuite::M105() {
39 39
       #endif
40 40
     );
41 41
   #else // !HAS_TEMP_SENSOR
42
-    SERIAL_ERROR_MSG(MSG_ERR_NO_THERMISTORS);
42
+    // Hosts such as printrun send M105 to check if firmware is responding.
43
+    SERIAL_ECHOPGM(MSG_OK);
44
+    SERIAL_ECHOPGM(" T:0");
43 45
   #endif
44 46
 
45 47
   SERIAL_EOL();

Loading…
Cancel
Save