1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-26 21:36:21 +00:00

Update temp table script for current format

This commit is contained in:
Scott Lahteine 2017-10-16 00:14:02 -05:00 committed by GitHub
parent d63d08ef8b
commit 4410aac60b

View File

@ -136,8 +136,7 @@ def main(argv):
print "// Steinhart-Hart Coefficients: a=%.15g, b=%.15g, c=%.15g " % (t.c1, t.c2, t.c3) print "// Steinhart-Hart Coefficients: a=%.15g, b=%.15g, c=%.15g " % (t.c1, t.c2, t.c3)
print "// Theoretical limits of termistor: %.2f to %.2f degC" % (low_bound, up_bound) print "// Theoretical limits of termistor: %.2f to %.2f degC" % (low_bound, up_bound)
print print
print "#define NUMTEMPS %s" % (len(temps)) print "const short temptable[][2] PROGMEM = {"
print "const short temptable[NUMTEMPS][2] PROGMEM = {"
for temp in temps: for temp in temps:
adc = t.adc(temp) adc = t.adc(temp)