Configtool: simplify board config parsing (a little bit).
There should be no functional change. Mostly done for consistency with other, similar code sections.
This commit is contained in:
parent
d49520c36d
commit
490e58a43c
|
|
@ -293,27 +293,26 @@ class BoardPanel(wx.Panel):
|
||||||
if self.parseCandidateValues(ln):
|
if self.parseCandidateValues(ln):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
elif self.parseDefineValue(ln):
|
if self.parseDefineValue(ln):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
else:
|
m = reDefTS.search(ln)
|
||||||
m = reDefTS.search(ln)
|
if m:
|
||||||
if m:
|
t = m.groups()
|
||||||
t = m.groups()
|
if len(t) == 1:
|
||||||
if len(t) == 1:
|
s = self.parseSensor(t[0])
|
||||||
s = self.parseSensor(t[0])
|
if s:
|
||||||
if s:
|
self.sensors.append(s)
|
||||||
self.sensors.append(s)
|
continue
|
||||||
continue
|
|
||||||
|
|
||||||
m = reDefHT.search(ln)
|
m = reDefHT.search(ln)
|
||||||
if m:
|
if m:
|
||||||
t = m.groups()
|
t = m.groups()
|
||||||
if len(t) == 1:
|
if len(t) == 1:
|
||||||
s = self.parseHeater(t[0])
|
s = self.parseHeater(t[0])
|
||||||
if s:
|
if s:
|
||||||
self.heaters.append(s)
|
self.heaters.append(s)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Parsing done. All parsed stuff is now in these arrays and dicts.
|
# Parsing done. All parsed stuff is now in these arrays and dicts.
|
||||||
# Uncomment for debugging.
|
# Uncomment for debugging.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue