|
@@ -184,21 +184,26 @@
|
184
|
184
|
#ifdef THERMISTORBED
|
185
|
185
|
#define BEDTEMPTABLE TT_NAME(THERMISTORBED)
|
186
|
186
|
#define BEDTEMPTABLE_LEN COUNT(BEDTEMPTABLE)
|
|
187
|
+#elif defined(HEATER_BED_USES_THERMISTOR)
|
|
188
|
+ #error "No bed thermistor table specified"
|
187
|
189
|
#else
|
188
|
|
- #ifdef HEATER_BED_USES_THERMISTOR
|
189
|
|
- #error "No bed thermistor table specified"
|
190
|
|
- #endif
|
|
190
|
+ #define BEDTEMPTABLE_LEN 0
|
191
|
191
|
#endif
|
192
|
192
|
|
193
|
193
|
#ifdef THERMISTORCHAMBER
|
194
|
194
|
#define CHAMBERTEMPTABLE TT_NAME(THERMISTORCHAMBER)
|
195
|
195
|
#define CHAMBERTEMPTABLE_LEN COUNT(CHAMBERTEMPTABLE)
|
|
196
|
+#elif defined(HEATER_CHAMBER_USES_THERMISTOR)
|
|
197
|
+ #error "No chamber thermistor table specified"
|
196
|
198
|
#else
|
197
|
|
- #ifdef HEATER_CHAMBER_USES_THERMISTOR
|
198
|
|
- #error "No chamber thermistor table specified"
|
199
|
|
- #endif
|
|
199
|
+ #define CHAMBERTEMPTABLE_LEN 0
|
200
|
200
|
#endif
|
201
|
201
|
|
|
202
|
+// The SCAN_THERMISTOR_TABLE macro needs alteration?
|
|
203
|
+static_assert(HEATER_0_TEMPTABLE_LEN < 128 && HEATER_1_TEMPTABLE_LEN < 128 && HEATER_2_TEMPTABLE_LEN < 128 && HEATER_3_TEMPTABLE_LEN < 128 && HEATER_4_TEMPTABLE_LEN < 128 && BEDTEMPTABLE_LEN < 128 && CHAMBERTEMPTABLE_LEN < 128,
|
|
204
|
+ "Temperature conversion tables over 127 entries need special consideration."
|
|
205
|
+);
|
|
206
|
+
|
202
|
207
|
// Set the high and low raw values for the heaters
|
203
|
208
|
// For thermistors the highest temperature results in the lowest ADC value
|
204
|
209
|
// For thermocouples the highest temperature results in the highest ADC value
|