From ef94d0672dd74d76a3ac5bf15c60ce47c643f673 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Thu, 6 Oct 2016 22:04:32 +0200 Subject: [PATCH] Configtool: don't assign values to tuples. Heck, that's simply forbidden. A C compiler had catched this in a split second at compile time, Python didn't until the faulty code section was actually executed (a section of code for rare cases). The simple fix is to replace the old tuple with a changed, new tuple. This resolved issue #242. --- configtool/communicationspage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configtool/communicationspage.py b/configtool/communicationspage.py index 5b3996a..80e345f 100644 --- a/configtool/communicationspage.py +++ b/configtool/communicationspage.py @@ -56,7 +56,7 @@ class CommunicationsPage(wx.Panel, Page): result = Page.getValues(self) if result['USB_SERIAL']: - result['BAUD'][1] = False + result['BAUD'] = result['BAUD'][0], False result['XONXOFF'] = False return result