From d47f29bd4c5573a054f2838df59b3986a8507e71 Mon Sep 17 00:00:00 2001 From: Antti Andreimann Date: Tue, 15 Oct 2019 13:30:52 -0500 Subject: [PATCH] Give a dummy response to M105 with zero thermistors (#15568) --- Marlin/src/core/language.h | 1 - Marlin/src/gcode/temperature/M105.cpp | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Marlin/src/core/language.h b/Marlin/src/core/language.h index 696a5cb0a..df3092fd9 100644 --- a/Marlin/src/core/language.h +++ b/Marlin/src/core/language.h @@ -168,7 +168,6 @@ #define MSG_INVALID_E_STEPPER "Invalid E stepper" #define MSG_E_STEPPER_NOT_SPECIFIED "E stepper not specified" #define MSG_INVALID_SOLENOID "Invalid solenoid" -#define MSG_ERR_NO_THERMISTORS "No thermistors - no temperature" #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 #define MSG_COUNT_X " Count X:" #define MSG_COUNT_A " Count A:" diff --git a/Marlin/src/gcode/temperature/M105.cpp b/Marlin/src/gcode/temperature/M105.cpp index bf11017a5..0483cb521 100644 --- a/Marlin/src/gcode/temperature/M105.cpp +++ b/Marlin/src/gcode/temperature/M105.cpp @@ -39,7 +39,9 @@ void GcodeSuite::M105() { #endif ); #else // !HAS_TEMP_SENSOR - SERIAL_ERROR_MSG(MSG_ERR_NO_THERMISTORS); + // Hosts such as printrun send M105 to check if firmware is responding. + SERIAL_ECHOPGM(MSG_OK); + SERIAL_ECHOPGM(" T:0"); #endif SERIAL_EOL();