|
@@ -134,10 +134,9 @@ def main(argv):
|
134
|
134
|
print "// Thermistor lookup table for Marlin"
|
135
|
135
|
print "// ./createTemperatureLookupMarlin.py --rp=%s --t1=%s:%s --t2=%s:%s --t3=%s:%s --num-temps=%s" % (rp, t1, r1, t2, r2, t3, r3, num_temps)
|
136
|
136
|
print "// Steinhart-Hart Coefficients: a=%.15g, b=%.15g, c=%.15g " % (t.c1, t.c2, t.c3)
|
137
|
|
- print "// Theoretical limits of termistor: %.2f to %.2f degC" % (low_bound, up_bound)
|
|
137
|
+ print "// Theoretical limits of thermistor: %.2f to %.2f degC" % (low_bound, up_bound)
|
138
|
138
|
print
|
139
|
|
- print "#define NUMTEMPS %s" % (len(temps))
|
140
|
|
- print "const short temptable[NUMTEMPS][2] PROGMEM = {"
|
|
139
|
+ print "const short temptable[][2] PROGMEM = {"
|
141
|
140
|
|
142
|
141
|
for temp in temps:
|
143
|
142
|
adc = t.adc(temp)
|