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 committed Apr 11, 2016
1 parent 595dd01 commit a2ecb1a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions configtool/thermistortablefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,8 @@ 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]
# Calculate actual temps for all ADC values

for i in range(1, int(hiadc), step):
t = int(thrm.temp(i))
Expand Down Expand Up @@ -146,10 +143,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 a2ecb1a

Please sign in to comment.