Browse Source

Autoreport Redundant Sensor option (#24014)

FB4S_WIFI
Scott Lahteine 2 years ago
committed by Scott Lahteine
parent
commit
a6ce9bf559
  1. 3
      Marlin/Configuration_adv.h
  2. 5
      Marlin/src/module/temperature.cpp

3
Marlin/Configuration_adv.h

@ -3745,6 +3745,9 @@
* Auto-report temperatures with M155 S<seconds>
*/
#define AUTO_REPORT_TEMPERATURES
#if ENABLED(AUTO_REPORT_TEMPERATURES) && TEMP_SENSOR_REDUNDANT
//#define AUTO_REPORT_REDUNDANT // Include the "R" sensor in the auto-report
#endif
/**
* Auto-report position with M154 S<seconds>

5
Marlin/src/module/temperature.cpp

@ -3911,7 +3911,10 @@ void Temperature::isr() {
#if ENABLED(AUTO_REPORT_TEMPERATURES)
AutoReporter<Temperature::AutoReportTemp> Temperature::auto_reporter;
void Temperature::AutoReportTemp::report() { print_heater_states(active_extruder); SERIAL_EOL(); }
void Temperature::AutoReportTemp::report() {
print_heater_states(active_extruder OPTARG(HAS_TEMP_REDUNDANT, ENABLED(AUTO_REPORT_REDUNDANT)));
SERIAL_EOL();
}
#endif
#if HAS_HOTEND && HAS_STATUS_MESSAGE

Loading…
Cancel
Save