From 84d8cf4d1b1374919c4f021e91c7cbee4ce44959 Mon Sep 17 00:00:00 2001 From: benj919 Date: Sat, 5 Sep 2015 01:44:54 +0200 Subject: [PATCH] Configtool: write RX/TX_ENABLE_PIN as-is. Because these two pins have no presence in Configtool's GUI, they got dropped when writing a board config file. These pins are needed for Gen3 Extruder Board support. This should solve issue #179. --- configtool/board.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configtool/board.py b/configtool/board.py index 1ff81b6..69fcb0d 100644 --- a/configtool/board.py +++ b/configtool/board.py @@ -448,7 +448,11 @@ class Board: fp.write("//") fp.write(defineValueFormat % (t[0], v[0])) else: - print "Value key " + t[0] + " not found in GUI." + if t[0] == 'RX_ENABLE_PIN' or t[0] == 'TX_ENABLE_PIN': + # Known to be absent in the GUI, also won't be added anytime soon. + fp.write(ln) + else: + print("Value key " + t[0] + " not found in GUI.") continue