@@ -2029,6 +2029,8 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
2029
2029
#error "HEATER_0_PIN not defined for this board."
2030
2030
#elif TEMP_SENSOR_IS_MAX_TC(0) && !PIN_EXISTS(TEMP_0_CS)
2031
2031
#error "TEMP_SENSOR_0 MAX thermocouple requires TEMP_0_CS_PIN."
2032
+ #elif TEMP_SENSOR_0 == 100
2033
+ #error "TEMP_SENSOR_0 can't use Soc temperature sensor."
2032
2034
#elif TEMP_SENSOR_0 == 0
2033
2035
#error "TEMP_SENSOR_0 is required with 1 or more HOTENDS."
2034
2036
#elif !ANY_PIN(TEMP_0, TEMP_0_CS) && !TEMP_SENSOR_0_IS_DUMMY
@@ -2040,53 +2042,67 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
2040
2042
#if HAS_MULTI_HOTEND
2041
2043
#if TEMP_SENSOR_IS_MAX_TC(1) && !PIN_EXISTS(TEMP_1_CS)
2042
2044
#error "TEMP_SENSOR_1 MAX thermocouple requires TEMP_1_CS_PIN."
2045
+ #elif TEMP_SENSOR_1 == 100
2046
+ #error "TEMP_SENSOR_1 can't use Soc temperature sensor."
2043
2047
#elif TEMP_SENSOR_1 == 0
2044
2048
#error "TEMP_SENSOR_1 is required with 2 or more HOTENDS."
2045
2049
#elif !ANY_PIN(TEMP_1, TEMP_1_CS) && !TEMP_SENSOR_1_IS_DUMMY
2046
2050
#error "TEMP_1_PIN or TEMP_1_CS_PIN not defined for this board."
2047
2051
#endif
2048
2052
#if HOTENDS > 2
2049
- #if TEMP_SENSOR_2 == 0
2053
+ #if TEMP_SENSOR_2 == 100
2054
+ #error "TEMP_SENSOR_2 can't use Soc temperature sensor."
2055
+ #elif TEMP_SENSOR_2 == 0
2050
2056
#error "TEMP_SENSOR_2 is required with 3 or more HOTENDS."
2051
2057
#elif !HAS_HEATER_2
2052
2058
#error "HEATER_2_PIN not defined for this board."
2053
2059
#elif !ANY_PIN(TEMP_2, TEMP_2_CS) && !TEMP_SENSOR_2_IS_DUMMY
2054
2060
#error "TEMP_2_PIN or TEMP_2_CS_PIN not defined for this board."
2055
2061
#endif
2056
2062
#if HOTENDS > 3
2057
- #if TEMP_SENSOR_3 == 0
2063
+ #if TEMP_SENSOR_3 == 100
2064
+ #error "TEMP_SENSOR_3 can't use Soc temperature sensor."
2065
+ #elif TEMP_SENSOR_3 == 0
2058
2066
#error "TEMP_SENSOR_3 is required with 4 or more HOTENDS."
2059
2067
#elif !HAS_HEATER_3
2060
2068
#error "HEATER_3_PIN not defined for this board."
2061
2069
#elif !PIN_EXISTS(TEMP_3) && !TEMP_SENSOR_3_IS_DUMMY
2062
2070
#error "TEMP_3_PIN not defined for this board."
2063
2071
#endif
2064
2072
#if HOTENDS > 4
2065
- #if TEMP_SENSOR_4 == 0
2073
+ #if TEMP_SENSOR_4 == 100
2074
+ #error "TEMP_SENSOR_4 can't use Soc temperature sensor."
2075
+ #elif TEMP_SENSOR_4 == 0
2066
2076
#error "TEMP_SENSOR_4 is required with 5 or more HOTENDS."
2067
2077
#elif !HAS_HEATER_4
2068
2078
#error "HEATER_4_PIN not defined for this board."
2069
2079
#elif !PIN_EXISTS(TEMP_4) && !TEMP_SENSOR_4_IS_DUMMY
2070
2080
#error "TEMP_4_PIN not defined for this board."
2071
2081
#endif
2072
2082
#if HOTENDS > 5
2073
- #if TEMP_SENSOR_5 == 0
2083
+ #if TEMP_SENSOR_5 == 100
2084
+ #error "TEMP_SENSOR_5 can't use Soc temperature sensor."
2085
+ #elif TEMP_SENSOR_5 == 0
2074
2086
#error "TEMP_SENSOR_5 is required with 6 HOTENDS."
2075
2087
#elif !HAS_HEATER_5
2076
2088
#error "HEATER_5_PIN not defined for this board."
2077
2089
#elif !PIN_EXISTS(TEMP_5) && !TEMP_SENSOR_5_IS_DUMMY
2078
2090
#error "TEMP_5_PIN not defined for this board."
2079
2091
#endif
2080
2092
#if HOTENDS > 6
2081
- #if TEMP_SENSOR_6 == 0
2093
+ #if TEMP_SENSOR_6 == 100
2094
+ #error "TEMP_SENSOR_6 can't use Soc temperature sensor."
2095
+ #elif TEMP_SENSOR_6 == 0
2082
2096
#error "TEMP_SENSOR_6 is required with 6 HOTENDS."
2083
2097
#elif !HAS_HEATER_6
2084
2098
#error "HEATER_6_PIN not defined for this board."
2085
2099
#elif !PIN_EXISTS(TEMP_6) && !TEMP_SENSOR_6_IS_DUMMY
2086
2100
#error "TEMP_6_PIN not defined for this board."
2087
2101
#endif
2088
2102
#if HOTENDS > 7
2089
- #if TEMP_SENSOR_7 == 0
2103
+ #if TEMP_SENSOR_7 == 100
2104
+ #error "TEMP_SENSOR_7 can't use Soc temperature sensor."
2105
+ #elif TEMP_SENSOR_7 == 0
2090
2106
#error "TEMP_SENSOR_7 is required with 7 HOTENDS."
2091
2107
#elif !HAS_HEATER_7
2092
2108
#error "HEATER_7_PIN not defined for this board."
@@ -2109,28 +2125,42 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
2109
2125
/* *
2110
2126
* Pins must be set for temp sensors, with some other feature requirements.
2111
2127
*/
2112
- #if TEMP_SENSOR_CHAMBER && !PIN_EXISTS(TEMP_CHAMBER)
2113
- #error "TEMP_SENSOR_CHAMBER requires TEMP_CHAMBER_PIN."
2128
+ #if TEMP_SENSOR_BED == 100
2129
+ #error "TEMP_SENSOR_BED can't use Soc temperature sensor."
2130
+ #endif
2131
+
2132
+ #if TEMP_SENSOR_CHAMBER
2133
+ #if TEMP_SENSOR_CHAMBER == 100
2134
+ #error "TEMP_SENSOR_CHAMBER can't use Soc temperature sensor."
2135
+ #elif !PIN_EXISTS(TEMP_CHAMBER)
2136
+ #error "TEMP_SENSOR_CHAMBER requires TEMP_CHAMBER_PIN."
2137
+ #endif
2114
2138
#endif
2115
2139
2116
2140
#if TEMP_SENSOR_COOLER
2117
- #if !PIN_EXISTS(TEMP_COOLER)
2141
+ #if TEMP_SENSOR_COOLER == 100
2142
+ #error "TEMP_SENSOR_COOLER can't use Soc temperature sensor."
2143
+ #elif !PIN_EXISTS(TEMP_COOLER)
2118
2144
#error "TEMP_SENSOR_COOLER requires TEMP_COOLER_PIN."
2119
2145
#elif DISABLED(LASER_FEATURE)
2120
2146
#error "TEMP_SENSOR_COOLER requires LASER_FEATURE."
2121
2147
#endif
2122
2148
#endif
2123
2149
2124
2150
#if TEMP_SENSOR_PROBE
2125
- #if !PIN_EXISTS(TEMP_PROBE)
2151
+ #if TEMP_SENSOR_PROBE == 100
2152
+ #error "TEMP_SENSOR_PROBE can't use Soc temperature sensor."
2153
+ #elif !PIN_EXISTS(TEMP_PROBE)
2126
2154
#error "TEMP_SENSOR_PROBE requires TEMP_PROBE_PIN."
2127
2155
#elif DISABLED(FIX_MOUNTED_PROBE)
2128
2156
#error "TEMP_SENSOR_PROBE shouldn't be set without FIX_MOUNTED_PROBE."
2129
2157
#endif
2130
2158
#endif
2131
2159
2132
2160
#if TEMP_SENSOR_BOARD
2133
- #if !PIN_EXISTS(TEMP_BOARD)
2161
+ #if TEMP_SENSOR_BOARD == 100
2162
+ #error "TEMP_SENSOR_BOARD can't use Soc temperature sensor."
2163
+ #elif !PIN_EXISTS(TEMP_BOARD)
2134
2164
#error "TEMP_SENSOR_BOARD requires TEMP_BOARD_PIN."
2135
2165
#elif ENABLED(THERMAL_PROTECTION_BOARD) && (!defined(BOARD_MINTEMP) || !defined(BOARD_MAXTEMP))
2136
2166
#error "THERMAL_PROTECTION_BOARD requires BOARD_MINTEMP and BOARD_MAXTEMP."
@@ -2140,7 +2170,9 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
2140
2170
#endif
2141
2171
2142
2172
#if TEMP_SENSOR_SOC
2143
- #if !PIN_EXISTS(TEMP_SOC)
2173
+ #if TEMP_SENSOR_SOC != 100
2174
+ #error "TEMP_SENSOR_SOC requires TEMP_SENSOR_SOC 100."
2175
+ #elif !PIN_EXISTS(TEMP_SOC)
2144
2176
#error "TEMP_SENSOR_SOC requires TEMP_SOC_PIN."
2145
2177
#elif ENABLED(THERMAL_PROTECTION_SOC) && !defined(SOC_MAXTEMP)
2146
2178
#error "THERMAL_PROTECTION_SOC requires SOC_MAXTEMP."
0 commit comments