thermistortablefile.py: fix output parameter list.
If you attempt a Steinhart-Hart table in the configtool with parameters (4700, 25, 100000, 209, 475, 256, 201) it fails with a: ... File "/Users/drf/2014/RepRap/GIT/Teacup_Firmware/configtool/ thermistortablefile.py", line 169, in SteinhartHartTable (i, int(t * 4), int(delta * 4 * 256), c, int(t), int(round(r))), TypeError: not enough arguments for format string Catched and fix provided by dr5fn, this should fix issue #246.
This commit is contained in:
parent
ef94d0672d
commit
36f54adb7f
|
|
@ -166,8 +166,8 @@ def SteinhartHartTable(ofp, params, names, settings, finalTable):
|
|||
|
||||
delta = (t - thrm.temp(prev)) / (prev - i) if i != prev else 0
|
||||
ofp.output(" {%4d, %5d, %5d}%s // %4d C, %6d ohms, m = %6.3f" %
|
||||
(i, int(t * 4), int(delta * 4 * 256), c, int(t), int(round(r))),
|
||||
delta)
|
||||
(i, int(t * 4), int(delta * 4 * 256), c, int(t), int(round(r)),
|
||||
delta))
|
||||
prev = i
|
||||
|
||||
if finalTable:
|
||||
|
|
|
|||
Loading…
Reference in New Issue