Temperature tables: add missing const qualifiers.
Spotted and fixed by wrtlprnft, thanks for the contribution.
This commit is contained in:
parent
d0bea9b51a
commit
0eecdf895b
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue