Add HAS_TEMP_SENSOR conditional
This commit is contained in:
parent
2d0d5eccd8
commit
2bf1bbf399
4 changed files with 12 additions and 7 deletions
|
|
@ -7706,7 +7706,7 @@ inline void gcode_M104() {
|
|||
inline void gcode_M105() {
|
||||
if (get_target_extruder_from_command(105)) return;
|
||||
|
||||
#if HAS_TEMP_HOTEND || HAS_TEMP_BED
|
||||
#if HAS_TEMP_SENSOR
|
||||
SERIAL_PROTOCOLPGM(MSG_OK);
|
||||
thermalManager.print_heaterstates();
|
||||
#else // !HAS_TEMP_HOTEND && !HAS_TEMP_BED
|
||||
|
|
@ -7717,7 +7717,7 @@ inline void gcode_M105() {
|
|||
SERIAL_EOL();
|
||||
}
|
||||
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED)
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES)
|
||||
|
||||
/**
|
||||
* M155: Set temperature auto-report interval. M155 S<seconds>
|
||||
|
|
@ -11682,7 +11682,7 @@ void process_parsed_command() {
|
|||
|
||||
case 105: gcode_M105(); KEEPALIVE_STATE(NOT_BUSY); return; // M105: Report Temperatures (and say "ok")
|
||||
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED)
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES)
|
||||
case 155: gcode_M155(); break; // M155: Set Temperature Auto-report Interval
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue