|
|
@ -137,6 +137,9 @@
|
|
|
|
#if ANY_THERMISTOR_IS(999) // User-defined table 2
|
|
|
|
#if ANY_THERMISTOR_IS(999) // User-defined table 2
|
|
|
|
#include "thermistor_999.h"
|
|
|
|
#include "thermistor_999.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ANY_THERMISTOR_IS(1000) // Custom
|
|
|
|
|
|
|
|
const short temptable_1000[][2] PROGMEM = { { 0, 0 } };
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define _TT_NAME(_N) temptable_ ## _N
|
|
|
|
#define _TT_NAME(_N) temptable_ ## _N
|
|
|
|
#define TT_NAME(_N) _TT_NAME(_N)
|
|
|
|
#define TT_NAME(_N) _TT_NAME(_N)
|
|
|
@ -202,25 +205,29 @@
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef THERMISTORBED
|
|
|
|
#ifdef THERMISTORBED
|
|
|
|
#define BEDTEMPTABLE TT_NAME(THERMISTORBED)
|
|
|
|
#define BED_TEMPTABLE TT_NAME(THERMISTORBED)
|
|
|
|
#define BEDTEMPTABLE_LEN COUNT(BEDTEMPTABLE)
|
|
|
|
#define BED_TEMPTABLE_LEN COUNT(BED_TEMPTABLE)
|
|
|
|
#elif defined(HEATER_BED_USES_THERMISTOR)
|
|
|
|
#elif defined(HEATER_BED_USES_THERMISTOR)
|
|
|
|
#error "No bed thermistor table specified"
|
|
|
|
#error "No bed thermistor table specified"
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define BEDTEMPTABLE_LEN 0
|
|
|
|
#define BED_TEMPTABLE_LEN 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef THERMISTORCHAMBER
|
|
|
|
#ifdef THERMISTORCHAMBER
|
|
|
|
#define CHAMBERTEMPTABLE TT_NAME(THERMISTORCHAMBER)
|
|
|
|
#define CHAMBER_TEMPTABLE TT_NAME(THERMISTORCHAMBER)
|
|
|
|
#define CHAMBERTEMPTABLE_LEN COUNT(CHAMBERTEMPTABLE)
|
|
|
|
#define CHAMBER_TEMPTABLE_LEN COUNT(CHAMBER_TEMPTABLE)
|
|
|
|
#elif defined(HEATER_CHAMBER_USES_THERMISTOR)
|
|
|
|
#elif defined(HEATER_CHAMBER_USES_THERMISTOR)
|
|
|
|
#error "No chamber thermistor table specified"
|
|
|
|
#error "No chamber thermistor table specified"
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define CHAMBERTEMPTABLE_LEN 0
|
|
|
|
#define CHAMBER_TEMPTABLE_LEN 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// The SCAN_THERMISTOR_TABLE macro needs alteration?
|
|
|
|
// The SCAN_THERMISTOR_TABLE macro needs alteration?
|
|
|
|
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,
|
|
|
|
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 && HEATER_5_TEMPTABLE_LEN < 256
|
|
|
|
|
|
|
|
&& BED_TEMPTABLE_LEN < 256 && CHAMBER_TEMPTABLE_LEN < 256,
|
|
|
|
"Temperature conversion tables over 255 entries need special consideration."
|
|
|
|
"Temperature conversion tables over 255 entries need special consideration."
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|