Browse Source

Update temp table script for current format

Scott Lahteine 7 years ago
parent
commit
4410aac60b
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      buildroot/share/scripts/createTemperatureLookupMarlin.py

+ 1
- 2
buildroot/share/scripts/createTemperatureLookupMarlin.py View File

136
     print "// Steinhart-Hart Coefficients: a=%.15g, b=%.15g, c=%.15g " % (t.c1, t.c2, t.c3)
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 termistor: %.2f to %.2f degC" % (low_bound, up_bound)
138
     print
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
     for temp in temps:
141
     for temp in temps:
143
         adc = t.adc(temp)
142
         adc = t.adc(temp)

Loading…
Cancel
Save