|
@@ -2,6 +2,7 @@
|
2
|
2
|
#define THERMISTORTABLES_H_
|
3
|
3
|
|
4
|
4
|
#include "Marlin.h"
|
|
5
|
+#include "macros.h"
|
5
|
6
|
|
6
|
7
|
#define OVERSAMPLENR 16
|
7
|
8
|
|
|
@@ -1123,7 +1124,7 @@ const short temptable_1047[][2] PROGMEM = {
|
1123
|
1124
|
|
1124
|
1125
|
#ifdef THERMISTORHEATER_0
|
1125
|
1126
|
# define HEATER_0_TEMPTABLE TT_NAME(THERMISTORHEATER_0)
|
1126
|
|
-# define HEATER_0_TEMPTABLE_LEN (sizeof(HEATER_0_TEMPTABLE)/sizeof(*HEATER_0_TEMPTABLE))
|
|
1127
|
+# define HEATER_0_TEMPTABLE_LEN COUNT(HEATER_0_TEMPTABLE)
|
1127
|
1128
|
#else
|
1128
|
1129
|
# ifdef HEATER_0_USES_THERMISTOR
|
1129
|
1130
|
# error No heater 0 thermistor table specified
|
|
@@ -1146,7 +1147,7 @@ const short temptable_1047[][2] PROGMEM = {
|
1146
|
1147
|
|
1147
|
1148
|
#ifdef THERMISTORHEATER_1
|
1148
|
1149
|
# define HEATER_1_TEMPTABLE TT_NAME(THERMISTORHEATER_1)
|
1149
|
|
-# define HEATER_1_TEMPTABLE_LEN (sizeof(HEATER_1_TEMPTABLE)/sizeof(*HEATER_1_TEMPTABLE))
|
|
1150
|
+# define HEATER_1_TEMPTABLE_LEN COUNT(HEATER_1_TEMPTABLE)
|
1150
|
1151
|
#else
|
1151
|
1152
|
# ifdef HEATER_1_USES_THERMISTOR
|
1152
|
1153
|
# error No heater 1 thermistor table specified
|
|
@@ -1169,7 +1170,7 @@ const short temptable_1047[][2] PROGMEM = {
|
1169
|
1170
|
|
1170
|
1171
|
#ifdef THERMISTORHEATER_2
|
1171
|
1172
|
# define HEATER_2_TEMPTABLE TT_NAME(THERMISTORHEATER_2)
|
1172
|
|
-# define HEATER_2_TEMPTABLE_LEN (sizeof(HEATER_2_TEMPTABLE)/sizeof(*HEATER_2_TEMPTABLE))
|
|
1173
|
+# define HEATER_2_TEMPTABLE_LEN COUNT(HEATER_2_TEMPTABLE)
|
1173
|
1174
|
#else
|
1174
|
1175
|
# ifdef HEATER_2_USES_THERMISTOR
|
1175
|
1176
|
# error No heater 2 thermistor table specified
|
|
@@ -1192,7 +1193,7 @@ const short temptable_1047[][2] PROGMEM = {
|
1192
|
1193
|
|
1193
|
1194
|
#ifdef THERMISTORHEATER_3
|
1194
|
1195
|
# define HEATER_3_TEMPTABLE TT_NAME(THERMISTORHEATER_3)
|
1195
|
|
-# define HEATER_3_TEMPTABLE_LEN (sizeof(HEATER_3_TEMPTABLE)/sizeof(*HEATER_3_TEMPTABLE))
|
|
1196
|
+# define HEATER_3_TEMPTABLE_LEN COUNT(HEATER_3_TEMPTABLE)
|
1196
|
1197
|
#else
|
1197
|
1198
|
# ifdef HEATER_3_USES_THERMISTOR
|
1198
|
1199
|
# error No heater 3 thermistor table specified
|
|
@@ -1215,7 +1216,7 @@ const short temptable_1047[][2] PROGMEM = {
|
1215
|
1216
|
|
1216
|
1217
|
#ifdef THERMISTORBED
|
1217
|
1218
|
# define BEDTEMPTABLE TT_NAME(THERMISTORBED)
|
1218
|
|
-# define BEDTEMPTABLE_LEN (sizeof(BEDTEMPTABLE)/sizeof(*BEDTEMPTABLE))
|
|
1219
|
+# define BEDTEMPTABLE_LEN COUNT(BEDTEMPTABLE)
|
1219
|
1220
|
#else
|
1220
|
1221
|
# ifdef BED_USES_THERMISTOR
|
1221
|
1222
|
# error No bed thermistor table specified
|