'M105 R' to report redundant temp sensor (#14324)

This commit is contained in:
Tim Moore
2019-06-27 19:29:53 -07:00
committed by Scott Lahteine
parent 39c0c2aebe
commit 81209f5310
3 changed files with 47 additions and 20 deletions

View File

@ -33,7 +33,11 @@ void GcodeSuite::M105() {
#if HAS_TEMP_SENSOR
SERIAL_ECHOPGM(MSG_OK);
thermalManager.print_heater_states(target_extruder);
thermalManager.print_heater_states(target_extruder
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
, parser.boolval('R')
#endif
);
#else // !HAS_TEMP_SENSOR
SERIAL_ERROR_MSG(MSG_ERR_NO_THERMISTORS);
#endif