|
@@ -3,7 +3,7 @@
|
3
|
3
|
|
4
|
4
|
#define OVERSAMPLENR 16
|
5
|
5
|
|
6
|
|
-#if (THERMISTORHEATER_1 == 1) || (THERMISTORHEATER_2 == 1) || (THERMISTORBED == 1) //100k bed thermistor
|
|
6
|
+#if (THERMISTORHEATER_0 == 1) || (THERMISTORHEATER_1 == 1) || (THERMISTORBED == 1) //100k bed thermistor
|
7
|
7
|
|
8
|
8
|
#define NUMTEMPS_1 61
|
9
|
9
|
const short temptable_1[NUMTEMPS_1][2] = {
|
|
@@ -70,7 +70,7 @@ const short temptable_1[NUMTEMPS_1][2] = {
|
70
|
70
|
{ 1008*OVERSAMPLENR , 0 } //safety
|
71
|
71
|
};
|
72
|
72
|
#endif
|
73
|
|
-#if (THERMISTORHEATER_1 == 2) || (THERMISTORHEATER_2 == 2) || (THERMISTORBED == 2) //200k bed thermistor
|
|
73
|
+#if (THERMISTORHEATER_0 == 2) || (THERMISTORHEATER_1 == 2) || (THERMISTORBED == 2) //200k bed thermistor
|
74
|
74
|
#define NUMTEMPS_2 21
|
75
|
75
|
const short temptable_2[NUMTEMPS_2][2] = {
|
76
|
76
|
{1*OVERSAMPLENR, 848},
|
|
@@ -97,7 +97,7 @@ const short temptable_2[NUMTEMPS_2][2] = {
|
97
|
97
|
};
|
98
|
98
|
|
99
|
99
|
#endif
|
100
|
|
-#if (THERMISTORHEATER_1 == 3) || (THERMISTORHEATER_2 == 3) || (THERMISTORBED == 3) //mendel-parts
|
|
100
|
+#if (THERMISTORHEATER_0 == 3) || (THERMISTORHEATER_1 == 3) || (THERMISTORBED == 3) //mendel-parts
|
101
|
101
|
#define NUMTEMPS_3 28
|
102
|
102
|
const short temptable_3[NUMTEMPS_3][2] = {
|
103
|
103
|
{1*OVERSAMPLENR,864},
|
|
@@ -131,7 +131,7 @@ const short temptable_3[NUMTEMPS_3][2] = {
|
131
|
131
|
};
|
132
|
132
|
|
133
|
133
|
#endif
|
134
|
|
-#if (THERMISTORHEATER_1 == 4) || (THERMISTORHEATER_2 == 4) || (THERMISTORBED == 4) //10k thermistor
|
|
134
|
+#if (THERMISTORHEATER_0 == 4) || (THERMISTORHEATER_1 == 4) || (THERMISTORBED == 4) //10k thermistor
|
135
|
135
|
|
136
|
136
|
#define NUMTEMPS_4 20
|
137
|
137
|
short temptable_4[NUMTEMPS_4][2] = {
|
|
@@ -158,7 +158,7 @@ short temptable_4[NUMTEMPS_4][2] = {
|
158
|
158
|
};
|
159
|
159
|
#endif
|
160
|
160
|
|
161
|
|
-#if (THERMISTORHEATER_1 == 5) || (THERMISTORHEATER_2 == 5) || (THERMISTORBED == 5) //100k ParCan thermistor (104GT-2)
|
|
161
|
+#if (THERMISTORHEATER_0 == 5) || (THERMISTORHEATER_1 == 5) || (THERMISTORBED == 5) //100k ParCan thermistor (104GT-2)
|
162
|
162
|
|
163
|
163
|
#define NUMTEMPS_5 61
|
164
|
164
|
const short temptable_5[NUMTEMPS_5][2] = {
|
|
@@ -226,7 +226,7 @@ const short temptable_5[NUMTEMPS_5][2] = {
|
226
|
226
|
};
|
227
|
227
|
#endif
|
228
|
228
|
|
229
|
|
-#if (THERMISTORHEATER_1 == 6) || (THERMISTORHEATER_2 == 6) || (THERMISTORBED == 6) // 100k Epcos thermistor
|
|
229
|
+#if (THERMISTORHEATER_0 == 6) || (THERMISTORHEATER_1 == 6) || (THERMISTORBED == 6) // 100k Epcos thermistor
|
230
|
230
|
#define NUMTEMPS_6 36
|
231
|
231
|
const short temptable_6[NUMTEMPS_6][2] = {
|
232
|
232
|
{28*OVERSAMPLENR, 250},
|
|
@@ -268,7 +268,7 @@ const short temptable_6[NUMTEMPS_6][2] = {
|
268
|
268
|
};
|
269
|
269
|
#endif
|
270
|
270
|
|
271
|
|
-#if (THERMISTORHEATER_1 == 7) || (THERMISTORHEATER_2 == 7) || (THERMISTORBED == 7) // 100k Honeywell 135-104LAG-J01
|
|
271
|
+#if (THERMISTORHEATER_0 == 7) || (THERMISTORHEATER_1 == 7) || (THERMISTORBED == 7) // 100k Honeywell 135-104LAG-J01
|
272
|
272
|
#define NUMTEMPS_7 54
|
273
|
273
|
const short temptable_7[NUMTEMPS_7][2] = {
|
274
|
274
|
{46*OVERSAMPLENR, 270},
|
|
@@ -330,56 +330,56 @@ const short temptable_7[NUMTEMPS_7][2] = {
|
330
|
330
|
|
331
|
331
|
|
332
|
332
|
|
|
333
|
+#if THERMISTORHEATER_0 == 1
|
|
334
|
+#define NUMTEMPS_HEATER_0 NUMTEMPS_1
|
|
335
|
+#define heater_0_temptable temptable_1
|
|
336
|
+#elif THERMISTORHEATER_0 == 2
|
|
337
|
+#define NUMTEMPS_HEATER_0 NUMTEMPS_2
|
|
338
|
+#define heater_0_temptable temptable_2
|
|
339
|
+#elif THERMISTORHEATER_0 == 3
|
|
340
|
+#define NUMTEMPS_HEATER_0 NUMTEMPS_3
|
|
341
|
+#define heater_0_temptable temptable_3
|
|
342
|
+#elif THERMISTORHEATER_0 == 4
|
|
343
|
+#define NUMTEMPS_HEATER_0 NUMTEMPS_4
|
|
344
|
+#define heater_0_temptable temptable_4
|
|
345
|
+#elif THERMISTORHEATER_0 == 5
|
|
346
|
+#define NUMTEMPS_HEATER_0 NUMTEMPS_5
|
|
347
|
+#define heater_0_temptable temptable_5
|
|
348
|
+#elif THERMISTORHEATER_0 == 6
|
|
349
|
+#define NUMTEMPS_HEATER_0 NUMTEMPS_6
|
|
350
|
+#define heater_0_temptable temptable_6
|
|
351
|
+#elif THERMISTORHEATER_0 == 7
|
|
352
|
+#define NUMTEMPS_HEATER_0 NUMTEMPS_7
|
|
353
|
+#define heater_0_temptable temptable_7
|
|
354
|
+#elif defined HEATER_0_USES_THERMISTOR
|
|
355
|
+#error No heater 0 thermistor table specified
|
|
356
|
+#endif
|
|
357
|
+
|
333
|
358
|
#if THERMISTORHEATER_1 == 1
|
334
|
359
|
#define NUMTEMPS_HEATER_1 NUMTEMPS_1
|
335
|
|
-#define temptable_1 temptable_1
|
|
360
|
+#define heater_1_temptable temptable_1
|
336
|
361
|
#elif THERMISTORHEATER_1 == 2
|
337
|
362
|
#define NUMTEMPS_HEATER_1 NUMTEMPS_2
|
338
|
|
-#define temptable_1 temptable_2
|
|
363
|
+#define heater_1_temptable temptable_2
|
339
|
364
|
#elif THERMISTORHEATER_1 == 3
|
340
|
365
|
#define NUMTEMPS_HEATER_1 NUMTEMPS_3
|
341
|
|
-#define temptable_1 temptable_3
|
|
366
|
+#define heater_1_temptable temptable_3
|
342
|
367
|
#elif THERMISTORHEATER_1 == 4
|
343
|
368
|
#define NUMTEMPS_HEATER_1 NUMTEMPS_4
|
344
|
|
-#define temptable_1 temptable_4
|
|
369
|
+#define heater_1_temptable temptable_4
|
345
|
370
|
#elif THERMISTORHEATER_1 == 5
|
346
|
371
|
#define NUMTEMPS_HEATER_1 NUMTEMPS_5
|
347
|
|
-#define temptable_1 temptable_5
|
|
372
|
+#define heater_1_temptable temptable_5
|
348
|
373
|
#elif THERMISTORHEATER_1 == 6
|
349
|
374
|
#define NUMTEMPS_HEATER_1 NUMTEMPS_6
|
350
|
|
-#define temptable_1 temptable_6
|
|
375
|
+#define heater_1_temptable temptable_6
|
351
|
376
|
#elif THERMISTORHEATER_1 == 7
|
352
|
377
|
#define NUMTEMPS_HEATER_1 NUMTEMPS_7
|
353
|
|
-#define temptable_1 temptable_7
|
|
378
|
+#define heater_1_temptable temptable_7
|
354
|
379
|
#elif defined HEATER_1_USES_THERMISTOR
|
355
|
380
|
#error No heater 1 thermistor table specified
|
356
|
381
|
#endif
|
357
|
382
|
|
358
|
|
-#if THERMISTORHEATER_2 == 1
|
359
|
|
-#define NUMTEMPS_HEATER_2 NUMTEMPS_1
|
360
|
|
-#define temptable_2 temptable_1
|
361
|
|
-#elif THERMISTORHEATER_2 == 2
|
362
|
|
-#define NUMTEMPS_HEATER_2 NUMTEMPS_2
|
363
|
|
-#define temptable_2 temptable_2
|
364
|
|
-#elif THERMISTORHEATER_2 == 3
|
365
|
|
-#define NUMTEMPS_HEATER_2 NUMTEMPS_3
|
366
|
|
-#define temptable_2 temptable_3
|
367
|
|
-#elif THERMISTORHEATER_2 == 4
|
368
|
|
-#define NUMTEMPS_HEATER_2 NUMTEMPS_4
|
369
|
|
-#define temptable_2 temptable_4
|
370
|
|
-#elif THERMISTORHEATER_2 == 5
|
371
|
|
-#define NUMTEMPS_HEATER_2 NUMTEMPS_5
|
372
|
|
-#define temptable_2 temptable_5
|
373
|
|
-#elif THERMISTORHEATER_2 == 6
|
374
|
|
-#define NUMTEMPS_HEATER_2 NUMTEMPS_6
|
375
|
|
-#define temptable_2 temptable_6
|
376
|
|
-#elif THERMISTORHEATER_2 == 7
|
377
|
|
-#define NUMTEMPS_HEATER22 NUMTEMPS_7
|
378
|
|
-#define temptable_2 temptable_7
|
379
|
|
-#elif defined HEATER_2_USES_THERMISTOR
|
380
|
|
-#error No heater 2 thermistor table specified
|
381
|
|
-#endif
|
382
|
|
-
|
383
|
383
|
|
384
|
384
|
#if THERMISTORBED == 1
|
385
|
385
|
#define BNUMTEMPS NUMTEMPS_1
|