From 2b5e28a4c8e7913a64e2c09d914b865f6300a62f Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 25 Feb 2015 20:33:16 +0100 Subject: [PATCH] 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. --- configtool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configtool.py b/configtool.py index b68ab76..ec385e6 100755 --- a/configtool.py +++ b/configtool.py @@ -395,15 +395,15 @@ class ConfigFrame(wx.Frame): if not self.verifyConfigLoaded(): dlg = wx.MessageDialog(self, "Loaded configuration does not match the " - "config.h file. Click Yes to load config.h.", - "Incorrect data loaded", + "config.h file. Click Yes to save config.h.", + "Configuration changed", wx.YES_NO | wx.NO_DEFAULT | wx.ICON_INFORMATION) rc = dlg.ShowModal() dlg.Destroy() if rc != wx.ID_YES: return - self.loadConfigFile("config.h") + self.onSaveConfig(None) f_cpu, cpu, baud = self.pgBoard.getCPUInfo() if not cpu: