Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Remove useless lines from Configtool
Browse files Browse the repository at this point in the history
I don't know what these lines were intended for, but the 'idx'
variable is not used anywhere else, so setting it is pointless.
  • Loading branch information
phord authored and Traumflug committed Apr 12, 2016
1 parent 67f0f6e commit 52e5d78
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions configtool/thermistortablefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ def BetaTable(ofp, params, names, settings, finalTable):
hiadc = thrm.setting(0)[0]
N = int(settings.numTemps)
step = int(hiadc / (N - 1))
idx = range(1, int(hiadc), step)

while len(idx) > N:
del idx[0]

for i in range(1, int(hiadc), step):
t = int(thrm.temp(i))
Expand Down Expand Up @@ -146,10 +142,6 @@ def SteinhartHartTable(ofp, params, names, settings, finalTable):
hiadc = thrm.setting(0)[0]
N = int(settings.numTemps)
step = int(hiadc / (N - 1))
idx = range(1, int(hiadc), step)

while len(idx) > N:
del idx[0]

for i in range(1, int(hiadc), step):
t = int(thrm.temp(i))
Expand Down

0 comments on commit 52e5d78

Please sign in to comment.