Add HAS_TEMP_SENSOR conditional
This commit is contained in:
@ -391,7 +391,7 @@ void GcodeSuite::process_parsed_command() {
|
||||
KEEPALIVE_STATE(NOT_BUSY);
|
||||
return; // "ok" already printed
|
||||
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED)
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && HAS_TEMP_SENSOR
|
||||
case 155: M155(); break; // M155: Set temperature auto-report interval
|
||||
#endif
|
||||
|
||||
|
@ -547,7 +547,7 @@ private:
|
||||
static void M150();
|
||||
#endif
|
||||
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED)
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && HAS_TEMP_SENSOR
|
||||
static void M155();
|
||||
#endif
|
||||
|
||||
|
@ -37,7 +37,7 @@ void GcodeSuite::M105() {
|
||||
const int16_t port = command_queue_port[cmd_queue_index_r];
|
||||
#endif
|
||||
|
||||
#if HAS_TEMP_HOTEND || HAS_TEMP_BED
|
||||
#if HAS_TEMP_SENSOR
|
||||
SERIAL_PROTOCOLPGM_P(port, MSG_OK);
|
||||
thermalManager.print_heaterstates(
|
||||
#if NUM_SERIAL > 1
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED)
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && HAS_TEMP_SENSOR
|
||||
|
||||
#include "../gcode.h"
|
||||
#include "../../module/temperature.h"
|
||||
@ -37,4 +37,4 @@ void GcodeSuite::M155() {
|
||||
|
||||
}
|
||||
|
||||
#endif // AUTO_REPORT_TEMPERATURES && (HAS_TEMP_HOTEND || HAS_TEMP_BED)
|
||||
#endif // AUTO_REPORT_TEMPERATURES && HAS_TEMP_SENSOR
|
||||
|
Reference in New Issue
Block a user