File tree 2 files changed +20
-19
lines changed
2 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 610
610
#endif
611
611
#endif
612
612
613
- #if TEMP_SENSOR_IS_MAX_TC (0 ) || TEMP_SENSOR_IS_MAX_TC (1 ) || TEMP_SENSOR_IS_MAX_TC (2 ) || TEMP_SENSOR_IS_MAX_TC (BED ) || TEMP_SENSOR_IS_MAX_TC (REDUNDANT )
614
- #define HAS_MAX_TC 1
615
- #endif
616
- #if TEMP_SENSOR_0_IS_MAX6675 || TEMP_SENSOR_1_IS_MAX6675 || TEMP_SENSOR_2_IS_MAX6675 || TEMP_SENSOR_BED_IS_MAX6675 || TEMP_SENSOR_REDUNDANT_IS_MAX6675
617
- #define HAS_MAX6675 1
618
- #endif
619
- #if TEMP_SENSOR_0_IS_MAX31855 || TEMP_SENSOR_1_IS_MAX31855 || TEMP_SENSOR_2_IS_MAX31855 || TEMP_SENSOR_BED_IS_MAX31855 || TEMP_SENSOR_REDUNDANT_IS_MAX31855
620
- #define HAS_MAX31855 1
621
- #endif
622
- #if TEMP_SENSOR_0_IS_MAX31865 || TEMP_SENSOR_1_IS_MAX31865 || TEMP_SENSOR_2_IS_MAX31865 || TEMP_SENSOR_BED_IS_MAX31865 || TEMP_SENSOR_REDUNDANT_IS_MAX31865
623
- #define HAS_MAX31865 1
624
- #endif
625
-
626
- #if !HAS_MAX_TC
627
- #undef THERMOCOUPLE_MAX_ERRORS
628
- #endif
629
-
630
613
#if TEMP_SENSOR_3 == -4
631
614
#define TEMP_SENSOR_3_IS_AD8495 1
632
615
#elif TEMP_SENSOR_3 == -3
745
728
#endif
746
729
#endif
747
730
731
+ #if TEMP_SENSOR_IS_MAX_TC (0 ) || TEMP_SENSOR_IS_MAX_TC (1 ) || TEMP_SENSOR_IS_MAX_TC (2 ) || TEMP_SENSOR_IS_MAX_TC (BED ) || TEMP_SENSOR_IS_MAX_TC (REDUNDANT )
732
+ #define HAS_MAX_TC 1
733
+ #endif
734
+ #if TEMP_SENSOR_0_IS_MAX6675 || TEMP_SENSOR_1_IS_MAX6675 || TEMP_SENSOR_2_IS_MAX6675 || TEMP_SENSOR_BED_IS_MAX6675 || TEMP_SENSOR_REDUNDANT_IS_MAX6675
735
+ #define HAS_MAX6675 1
736
+ #endif
737
+ #if TEMP_SENSOR_0_IS_MAX31855 || TEMP_SENSOR_1_IS_MAX31855 || TEMP_SENSOR_2_IS_MAX31855 || TEMP_SENSOR_BED_IS_MAX31855 || TEMP_SENSOR_REDUNDANT_IS_MAX31855
738
+ #define HAS_MAX31855 1
739
+ #endif
740
+ #if TEMP_SENSOR_0_IS_MAX31865 || TEMP_SENSOR_1_IS_MAX31865 || TEMP_SENSOR_2_IS_MAX31865 || TEMP_SENSOR_BED_IS_MAX31865 || TEMP_SENSOR_REDUNDANT_IS_MAX31865
741
+ #define HAS_MAX31865 1
742
+ #endif
743
+
744
+ #if !HAS_MAX_TC
745
+ #undef THERMOCOUPLE_MAX_ERRORS
746
+ #endif
747
+
748
748
#if TEMP_SENSOR_CHAMBER == -4
749
749
#define TEMP_SENSOR_CHAMBER_IS_AD8495 1
750
750
#elif TEMP_SENSOR_CHAMBER == -3
Original file line number Diff line number Diff line change @@ -3466,13 +3466,14 @@ void Temperature::disable_all_heaters() {
3466
3466
#endif // SINGLENOZZLE_STANDBY_TEMP || SINGLENOZZLE_STANDBY_FAN
3467
3467
3468
3468
#if HAS_MAX_TC
3469
-
3470
3469
typedef TERN (HAS_MAX31855, uint32_t , uint16_t ) max_tc_temp_t ;
3471
3470
3472
3471
#ifndef THERMOCOUPLE_MAX_ERRORS
3473
3472
#define THERMOCOUPLE_MAX_ERRORS 15
3474
3473
#endif
3474
+ #endif
3475
3475
3476
+ #if TEMP_SENSOR_IS_MAX_TC(0) || TEMP_SENSOR_IS_MAX_TC(1) || TEMP_SENSOR_IS_MAX_TC(2)
3476
3477
/* *
3477
3478
* @brief Read MAX Thermocouple temperature.
3478
3479
*
@@ -3729,7 +3730,7 @@ void Temperature::disable_all_heaters() {
3729
3730
#endif
3730
3731
3731
3732
// Set thermocouple above max temperature (TMAX)
3732
- max_tc_temp = TEMP_SENSOR_BED_MAX_TC_TMAX << (BED_MAX_TC_DISCARD_BITS + 1 );
3733
+ max_tc_temp = max_tc_temp_t ( TEMP_SENSOR_BED_MAX_TC_TMAX) << (BED_MAX_TC_DISCARD_BITS + 1 );
3733
3734
}
3734
3735
}
3735
3736
else {
You can’t perform that action at this time.
0 commit comments