Add HAS_TEMP_SENSOR conditional

This commit is contained in:
Scott Lahteine
2018-03-07 01:53:50 -06:00
parent 94f5204629
commit ffbf63e6af
8 changed files with 15 additions and 10 deletions

View File

@ -417,7 +417,7 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
// Report heater states every 2 seconds
if (ELAPSED(ms, next_temp_ms)) {
#if HAS_TEMP_HOTEND || HAS_TEMP_BED
#if HAS_TEMP_SENSOR
print_heaterstates();
SERIAL_EOL();
#endif
@ -2144,7 +2144,7 @@ void Temperature::isr() {
ENABLE_TEMPERATURE_INTERRUPT(); //re-enable Temperature ISR
}
#if HAS_TEMP_HOTEND || HAS_TEMP_BED
#if HAS_TEMP_SENSOR
#include "../gcode/gcode.h"
@ -2251,4 +2251,4 @@ void Temperature::isr() {
#endif // AUTO_REPORT_TEMPERATURES
#endif // HAS_TEMP_HOTEND || HAS_TEMP_BED
#endif // HAS_TEMP_SENSOR

View File

@ -564,7 +564,7 @@ class Temperature {
#endif // HEATER_IDLE_HANDLER
#if HAS_TEMP_HOTEND || HAS_TEMP_BED
#if HAS_TEMP_SENSOR
static void print_heaterstates(
#if NUM_SERIAL > 1
const int8_t port = -1