Temperature tables: add missing const qualifiers.

Spotted and fixed by wrtlprnft, thanks for the contribution.
This commit is contained in:
Markus Hitter 2013-11-16 17:24:59 +01:00
parent d0bea9b51a
commit 0eecdf895b
4 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@
// Must be the same for all tables. // Must be the same for all tables.
#define NUMTEMPS 102 #define NUMTEMPS 102
uint16_t const temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { const uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = {
// Table for the Extruder. // Table for the Extruder.
// Thermistor: EPCOS B57560G104F // Thermistor: EPCOS B57560G104F

View File

@ -35,7 +35,7 @@
// Must be the same for all tables. // Must be the same for all tables.
#define NUMTEMPS 20 #define NUMTEMPS 20
uint16_t const temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { const uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = {
// Table for the Extruder. // Table for the Extruder.
// Thermistor: unknown // Thermistor: unknown

View File

@ -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) 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: else:
print "#define NUMTEMPS %s " % (len(adcs)) 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) print "// {ADC, temp*%s }, // temp Rtherm Vtherm resolution power" % (mult)
counter = 0 counter = 0

View File

@ -24,7 +24,7 @@
// max adc: 1023 // max adc: 1023
#define NUMTEMPS 20 #define NUMTEMPS 20
// {ADC, temp*4 }, // temp // {ADC, temp*4 }, // temp
uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { const uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = {
{ {
{1, 3364}, // 841.027617469 C {1, 3364}, // 841.027617469 C
{21, 1329}, // 332.486789769 C {21, 1329}, // 332.486789769 C