|
@@ -137,6 +137,9 @@
|
137
|
137
|
#if ANY_THERMISTOR_IS(999) // User-defined table 2
|
138
|
138
|
#include "thermistor_999.h"
|
139
|
139
|
#endif
|
|
140
|
+#if ANY_THERMISTOR_IS(1000) // Custom
|
|
141
|
+ const short temptable_1000[][2] PROGMEM = { { 0, 0 } };
|
|
142
|
+#endif
|
140
|
143
|
|
141
|
144
|
#define _TT_NAME(_N) temptable_ ## _N
|
142
|
145
|
#define TT_NAME(_N) _TT_NAME(_N)
|
|
@@ -202,25 +205,29 @@
|
202
|
205
|
#endif
|
203
|
206
|
|
204
|
207
|
#ifdef THERMISTORBED
|
205
|
|
- #define BEDTEMPTABLE TT_NAME(THERMISTORBED)
|
206
|
|
- #define BEDTEMPTABLE_LEN COUNT(BEDTEMPTABLE)
|
|
208
|
+ #define BED_TEMPTABLE TT_NAME(THERMISTORBED)
|
|
209
|
+ #define BED_TEMPTABLE_LEN COUNT(BED_TEMPTABLE)
|
207
|
210
|
#elif defined(HEATER_BED_USES_THERMISTOR)
|
208
|
211
|
#error "No bed thermistor table specified"
|
209
|
212
|
#else
|
210
|
|
- #define BEDTEMPTABLE_LEN 0
|
|
213
|
+ #define BED_TEMPTABLE_LEN 0
|
211
|
214
|
#endif
|
212
|
215
|
|
213
|
216
|
#ifdef THERMISTORCHAMBER
|
214
|
|
- #define CHAMBERTEMPTABLE TT_NAME(THERMISTORCHAMBER)
|
215
|
|
- #define CHAMBERTEMPTABLE_LEN COUNT(CHAMBERTEMPTABLE)
|
|
217
|
+ #define CHAMBER_TEMPTABLE TT_NAME(THERMISTORCHAMBER)
|
|
218
|
+ #define CHAMBER_TEMPTABLE_LEN COUNT(CHAMBER_TEMPTABLE)
|
216
|
219
|
#elif defined(HEATER_CHAMBER_USES_THERMISTOR)
|
217
|
220
|
#error "No chamber thermistor table specified"
|
218
|
221
|
#else
|
219
|
|
- #define CHAMBERTEMPTABLE_LEN 0
|
|
222
|
+ #define CHAMBER_TEMPTABLE_LEN 0
|
220
|
223
|
#endif
|
221
|
224
|
|
222
|
225
|
// The SCAN_THERMISTOR_TABLE macro needs alteration?
|
223
|
|
-static_assert(HEATER_0_TEMPTABLE_LEN < 256 && HEATER_1_TEMPTABLE_LEN < 256 && HEATER_2_TEMPTABLE_LEN < 256 && HEATER_3_TEMPTABLE_LEN < 256 && HEATER_4_TEMPTABLE_LEN < 256 && BEDTEMPTABLE_LEN < 256 && CHAMBERTEMPTABLE_LEN < 256,
|
|
226
|
+static_assert(
|
|
227
|
+ HEATER_0_TEMPTABLE_LEN < 256 && HEATER_1_TEMPTABLE_LEN < 256
|
|
228
|
+ && HEATER_2_TEMPTABLE_LEN < 256 && HEATER_3_TEMPTABLE_LEN < 256
|
|
229
|
+ && HEATER_4_TEMPTABLE_LEN < 256 && HEATER_5_TEMPTABLE_LEN < 256
|
|
230
|
+ && BED_TEMPTABLE_LEN < 256 && CHAMBER_TEMPTABLE_LEN < 256,
|
224
|
231
|
"Temperature conversion tables over 255 entries need special consideration."
|
225
|
232
|
);
|
226
|
233
|
|