@@ -751,7 +751,7 @@ volatile bool Temperature::raw_temps_ready = false;
751751 // Report heater states every 2 seconds
752752 if (ELAPSED (ms, next_temp_ms)) {
753753 #if HAS_TEMP_SENSOR
754- print_heater_states (ischamber ? active_extruder : (isbed ? active_extruder : heater_id) );
754+ print_heater_states (heater_id < 0 ? active_extruder : ( int8_t )heater_id );
755755 SERIAL_EOL ();
756756 #endif
757757 next_temp_ms = ms + 2000UL ;
@@ -2817,6 +2817,9 @@ void Temperature::init() {
28172817
28182818#if HAS_THERMAL_PROTECTION
28192819
2820+ #pragma GCC diagnostic push
2821+ #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
2822+
28202823 Temperature::tr_state_machine_t Temperature::tr_state_machine[NR_HEATER_RUNAWAY]; // = { { TRInactive, 0 } };
28212824
28222825 /* *
@@ -2946,6 +2949,8 @@ void Temperature::init() {
29462949 }
29472950 }
29482951
2952+ #pragma GCC diagnostic pop
2953+
29492954#endif // HAS_THERMAL_PROTECTION
29502955
29512956void Temperature::disable_all_heaters () {
@@ -3669,6 +3674,9 @@ void Temperature::isr() {
36693674
36703675 switch (adc_sensor_state) {
36713676
3677+ #pragma GCC diagnostic push
3678+ #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
3679+
36723680 case SensorsReady: {
36733681 // All sensors have been read. Stay in this state for a few
36743682 // ISRs to save on calls to temp update/checking code below.
@@ -3686,6 +3694,8 @@ void Temperature::isr() {
36863694 }
36873695 }
36883696
3697+ #pragma GCC diagnostic pop
3698+
36893699 case StartSampling: // Start of sampling loops. Do updates/checks.
36903700 if (++temp_count >= OVERSAMPLENR) { // 10 * 16 * 1/(16000000/64/256) = 164ms.
36913701 temp_count = 0 ;
@@ -3917,7 +3927,7 @@ void Temperature::isr() {
39173927 delay (2 );
39183928 }
39193929
3920- void Temperature::print_heater_states (const uint8_t target_extruder
3930+ void Temperature::print_heater_states (const int8_t target_extruder
39213931 OPTARG (HAS_TEMP_REDUNDANT, const bool include_r/* =false*/ )
39223932 ) {
39233933 #if HAS_TEMP_HOTEND
0 commit comments