diff --git a/ThermistorTable.double.h b/ThermistorTable.double.h index 3de3423..73c0036 100644 --- a/ThermistorTable.double.h +++ b/ThermistorTable.double.h @@ -35,7 +35,7 @@ // Must be the same for all tables. #define NUMTEMPS 102 -uint16_t const temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { +const uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { // Table for the Extruder. // Thermistor: EPCOS B57560G104F diff --git a/ThermistorTable.single.h b/ThermistorTable.single.h index f788a37..9734fa0 100644 --- a/ThermistorTable.single.h +++ b/ThermistorTable.single.h @@ -35,7 +35,7 @@ // Must be the same for all tables. #define NUMTEMPS 20 -uint16_t const temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { +const uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { // Table for the Extruder. // Thermistor: unknown diff --git a/createTemperatureLookup.py b/createTemperatureLookup.py index 883486d..76aae9f 100755 --- a/createTemperatureLookup.py +++ b/createTemperatureLookup.py @@ -183,7 +183,7 @@ def main(argv): print "{ //" + " Table 0 chunk for B={b}, R0={r0}, R1={r1}, R2={r2}, Vref={v}".format(par="{",b=beta,r0=r0,r1=r1,r2=r2,v=vadc) else: print "#define NUMTEMPS %s " % (len(adcs)) - print "uint16_t temptable[NUMTEMPS][2] PROGMEM = {" + print "const uint16_t temptable[NUMTEMPS][2] PROGMEM = {" print "// {ADC, temp*%s }, // temp Rtherm Vtherm resolution power" % (mult) counter = 0 diff --git a/extruder/ThermistorTable.h b/extruder/ThermistorTable.h index 4013b1a..32c1fad 100644 --- a/extruder/ThermistorTable.h +++ b/extruder/ThermistorTable.h @@ -24,7 +24,7 @@ // max adc: 1023 #define NUMTEMPS 20 // {ADC, temp*4 }, // temp -uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { +const uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { { {1, 3364}, // 841.027617469 C {21, 1329}, // 332.486789769 C