Configtool: on configuration mismatch, save instead of load.
Loading led to building a firmware which didn't match what was visible in the dialogs when the build was started. Very misleading.
This commit is contained in:
parent
6a93cbac64
commit
2b5e28a4c8
|
|
@ -395,15 +395,15 @@ class ConfigFrame(wx.Frame):
|
||||||
|
|
||||||
if not self.verifyConfigLoaded():
|
if not self.verifyConfigLoaded():
|
||||||
dlg = wx.MessageDialog(self, "Loaded configuration does not match the "
|
dlg = wx.MessageDialog(self, "Loaded configuration does not match the "
|
||||||
"config.h file. Click Yes to load config.h.",
|
"config.h file. Click Yes to save config.h.",
|
||||||
"Incorrect data loaded",
|
"Configuration changed",
|
||||||
wx.YES_NO | wx.NO_DEFAULT | wx.ICON_INFORMATION)
|
wx.YES_NO | wx.NO_DEFAULT | wx.ICON_INFORMATION)
|
||||||
rc = dlg.ShowModal()
|
rc = dlg.ShowModal()
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
if rc != wx.ID_YES:
|
if rc != wx.ID_YES:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.loadConfigFile("config.h")
|
self.onSaveConfig(None)
|
||||||
|
|
||||||
f_cpu, cpu, baud = self.pgBoard.getCPUInfo()
|
f_cpu, cpu, baud = self.pgBoard.getCPUInfo()
|
||||||
if not cpu:
|
if not cpu:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue