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:
Markus Hitter 2016-10-24 12:44:24 +02:00
parent ef94d0672d
commit 36f54adb7f
1 changed files with 2 additions and 2 deletions

View File

@ -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: