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.
This commit is contained in:
parent
feb57c3eb0
commit
a40f818068
|
|
@ -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*\\)")
|
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*\\)")
|
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*\\)")
|
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?$")
|
reInteger = re.compile("^\d+U?L?$")
|
||||||
reFloat = re.compile("^\d+(\.\d*)?$")
|
reFloat = re.compile("^\d+(\.\d*)?$")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue