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

Commit 52e5d78

Browse files
phordTraumflug
authored andcommitted
Remove useless lines from Configtool
I don't know what these lines were intended for, but the 'idx' variable is not used anywhere else, so setting it is pointless.
1 parent 67f0f6e commit 52e5d78

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

configtool/thermistortablefile.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ def BetaTable(ofp, params, names, settings, finalTable):
100100
hiadc = thrm.setting(0)[0]
101101
N = int(settings.numTemps)
102102
step = int(hiadc / (N - 1))
103-
idx = range(1, int(hiadc), step)
104-
105-
while len(idx) > N:
106-
del idx[0]
107103

108104
for i in range(1, int(hiadc), step):
109105
t = int(thrm.temp(i))
@@ -146,10 +142,6 @@ def SteinhartHartTable(ofp, params, names, settings, finalTable):
146142
hiadc = thrm.setting(0)[0]
147143
N = int(settings.numTemps)
148144
step = int(hiadc / (N - 1))
149-
idx = range(1, int(hiadc), step)
150-
151-
while len(idx) > N:
152-
del idx[0]
153145

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

0 commit comments

Comments
 (0)