Configtool: add debugging aid.

All comments, no functional change. One unused line of code
removed.
This commit is contained in:
Markus Hitter 2016-04-11 17:21:51 +02:00
parent 212eca7f8e
commit 4d37d35f29
2 changed files with 23 additions and 1 deletions

View File

@ -327,6 +327,22 @@ class BoardPanel(wx.Panel):
self.heaters.append(s)
continue
# Parsing done. All parsed stuff is now in these arrays and dicts.
# Uncomment for debugging.
#print self.processors
#print self.sensors
#print self.heaters
#print self.candHeatPins
#print self.candThermPins
#print self.candProcessors
#print self.candClocks
#print self.candDisplayBuses
#print self.candDisplayTypes
#print self.tempTables
#print self.cfgValues # #defines with a value and enabled booleans.
#print self.cfgNames # Names only, but also of disabled booleans.
#print self.helpText
for k in range(len(self.sensors)):
tn = self.sensors[k][0].upper()
if tn in self.tempTables.keys():
@ -340,6 +356,7 @@ class BoardPanel(wx.Panel):
else:
self.protFileLoaded = False
self.parent.enableSaveBoard(True, True)
self.parent.setBoardTabFile(os.path.basename(fn))
self.pgHeaters.setCandidatePins(self.candHeatPins)
self.pgSensors.setCandidatePins(self.candThermPins)

View File

@ -183,7 +183,6 @@ class PrinterPanel(wx.Panel):
self.configFile = fn
self.processors = []
gatheringHelpText = False
helpTextString = ""
helpKey = None
@ -257,6 +256,12 @@ class PrinterPanel(wx.Panel):
if self.parseDefineValue(ln):
continue
# Parsing done. All parsed stuff is now in these arrays and dicts.
# Uncomment for debugging.
#print self.cfgValues # #defines with a value and enabled booleans.
#print self.cfgNames # Names only, but also of disabled booleans.
#print self.helpText
if os.path.basename(fn) in protectedFiles:
self.parent.enableSavePrinter(False, True)
self.protFileLoaded = True