Add HAS_TEMP_SENSOR conditional
This commit is contained in:
@@ -416,7 +416,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
|
||||
@@ -2235,7 +2235,7 @@ void Temperature::isr() {
|
||||
SBI(TIMSK0, OCIE0B); //re-enable Temperature ISR
|
||||
}
|
||||
|
||||
#if HAS_TEMP_HOTEND || HAS_TEMP_BED
|
||||
#if HAS_TEMP_SENSOR
|
||||
|
||||
void print_heater_state(const float &c, const float &t,
|
||||
#if ENABLED(SHOW_TEMP_ADC_VALUES)
|
||||
@@ -2326,4 +2326,4 @@ void Temperature::isr() {
|
||||
|
||||
#endif // AUTO_REPORT_TEMPERATURES
|
||||
|
||||
#endif // HAS_TEMP_HOTEND || HAS_TEMP_BED
|
||||
#endif // HAS_TEMP_SENSOR
|
||||
|
||||
Reference in New Issue
Block a user