From a40f8180686b5afae10385714e496f1a4d86f78b Mon Sep 17 00:00:00 2001 From: jbernardis Date: Wed, 22 Jul 2015 16:25:50 -0400 Subject: [PATCH] Configtool: fix the logic to accept floating input. Previously if did not read back in the table information correctly. This is related to issue #176. --- configtool/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configtool/data.py b/configtool/data.py index e5ef0f3..1086f86 100644 --- a/configtool/data.py +++ b/configtool/data.py @@ -59,7 +59,7 @@ reHelpText = re.compile("/\*\*.*?\*/\r?\n", re.DOTALL) reSensor = re.compile(".*\\(\s*(\w+)\s*,\s*(\w+)\s*,\s*(\w+)\s*,\s*(\w+)\s*\\)") reHeater = re.compile(".*\\(\s*(\w+)\s*,\s*(\w+)\s*,\s*(\w+)\s*\\)") reTempTable4 = re.compile(".*\\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d*.?\d*)\s*\\)") -reTempTable7 = re.compile(".*\\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\\)") +reTempTable7 = re.compile(".*\\(\s*(\d+)\s*,\s*(\d*.?\d*)\s*,\s*(\d+)\s*,\s*(\d*.?\d*)\s*,\s*(\d+)\s*,\s*(\d*.?\d*)\s*,\s*(\d+)\s*\\)") reInteger = re.compile("^\d+U?L?$") reFloat = re.compile("^\d+(\.\d*)?$")