File tree 2 files changed +21
-9
lines changed
2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -508,8 +508,12 @@ PGMSTR(str_t_heating_failed, STR_T_HEATING_FAILED);
508
508
// Init min and max temp with extreme values to prevent false errors during startup
509
509
raw_adc_t Temperature::mintemp_raw_BED = TEMP_SENSOR_BED_RAW_LO_TEMP,
510
510
Temperature::maxtemp_raw_BED = TEMP_SENSOR_BED_RAW_HI_TEMP;
511
- TERN_ (WATCH_BED, bed_watch_t Temperature::watch_bed); // = { 0 }
512
- IF_DISABLED (PIDTEMPBED, millis_t Temperature::next_bed_check_ms);
511
+ #if WATCH_BED
512
+ bed_watch_t Temperature::watch_bed; // = { 0 }
513
+ #endif
514
+ #if DISABLED(PIDTEMPBED)
515
+ millis_t Temperature::next_bed_check_ms;
516
+ #endif
513
517
#endif
514
518
515
519
#if HAS_TEMP_CHAMBER
@@ -519,8 +523,12 @@ PGMSTR(str_t_heating_failed, STR_T_HEATING_FAILED);
519
523
celsius_float_t old_temp = 9999 ;
520
524
raw_adc_t Temperature::mintemp_raw_CHAMBER = TEMP_SENSOR_CHAMBER_RAW_LO_TEMP,
521
525
Temperature::maxtemp_raw_CHAMBER = TEMP_SENSOR_CHAMBER_RAW_HI_TEMP;
522
- TERN_ (WATCH_CHAMBER, chamber_watch_t Temperature::watch_chamber{0 });
523
- IF_DISABLED (PIDTEMPCHAMBER, millis_t Temperature::next_chamber_check_ms);
526
+ #if WATCH_CHAMBER
527
+ chamber_watch_t Temperature::watch_chamber; // = { 0 }
528
+ #endif
529
+ #if DISABLED(PIDTEMPCHAMBER)
530
+ millis_t Temperature::next_chamber_check_ms;
531
+ #endif
524
532
#endif
525
533
#endif
526
534
Original file line number Diff line number Diff line change @@ -725,23 +725,27 @@ class Temperature {
725
725
#endif
726
726
727
727
#if HAS_HEATED_BED
728
- #if ENABLED( WATCH_BED)
728
+ #if WATCH_BED
729
729
static bed_watch_t watch_bed;
730
730
#endif
731
- IF_DISABLED (PIDTEMPBED, static millis_t next_bed_check_ms);
731
+ #if DISABLED(PIDTEMPBED)
732
+ static millis_t next_bed_check_ms;
733
+ #endif
732
734
static raw_adc_t mintemp_raw_BED, maxtemp_raw_BED;
733
735
#endif
734
736
735
737
#if HAS_HEATED_CHAMBER
736
- #if ENABLED( WATCH_CHAMBER)
738
+ #if WATCH_CHAMBER
737
739
static chamber_watch_t watch_chamber;
738
740
#endif
739
- TERN (PIDTEMPCHAMBER,,static millis_t next_chamber_check_ms);
741
+ #if DISABLED(PIDTEMPCHAMBER)
742
+ static millis_t next_chamber_check_ms;
743
+ #endif
740
744
static raw_adc_t mintemp_raw_CHAMBER, maxtemp_raw_CHAMBER;
741
745
#endif
742
746
743
747
#if HAS_COOLER
744
- #if ENABLED( WATCH_COOLER)
748
+ #if WATCH_COOLER
745
749
static cooler_watch_t watch_cooler;
746
750
#endif
747
751
static millis_t next_cooler_check_ms, cooler_fan_flush_ms;
You canβt perform that action at this time.
0 commit comments