Temperatures may in fact be negative
E.g. in case of a disconnected thermistor, or when it is really really cold. Make sure our parsing doesn't get confuse by this and thinks that ok T:150.0/210.0 T0:-55.7/0 T1:150.0/210.0 is actually only T and T1 being reported by the firmware, causing stuff to be wrongly canonicalized thanks to T/T1 being Smoothie's way of reporting dual extruder setups. Fixes #2007
This commit is contained in:
1 parent
b1101f5150
commit
cf053ddbed
2 files changed
+6
-4
No files matched your search
@@ -89,7 +89,7 @@ Groups will be as follows:
|
||||
* ``size``: size of the file in bytes (int)
|
||||
"""
|
||||
|
||||
regex_temp = re.compile("(?P<tool>B|T(?P<toolnum>\d*)):\s*(?P<actual>%s)(\s*\/?\s*(?P<target>%s))?" % (regex_positive_float_pattern, regex_positive_float_pattern))
|
||||
regex_temp = re.compile("(?P<tool>B|T(?P<toolnum>\d*)):\s*(?P<actual>%s)(\s*\/?\s*(?P<target>%s))?" % (regex_float_pattern, regex_float_pattern))
|
||||
"""Regex matching temperature entries in line.
|
||||
|
||||
Groups will be as follows:
|
||||
@@ -100,7 +100,7 @@ Groups will be as follows:
|
||||
* ``target``: target temperature, if provided (float)
|
||||
"""
|
||||
|
||||
regex_repetierTempExtr = re.compile("TargetExtr(?P<toolnum>\d+):(?P<target>%s)" % regex_positive_float_pattern)
|
||||
regex_repetierTempExtr = re.compile("TargetExtr(?P<toolnum>\d+):(?P<target>%s)" % regex_float_pattern)
|
||||
"""Regex for matching target temp reporting from Repetier.
|
||||
|
||||
Groups will be as follows:
|
||||
@@ -110,7 +110,7 @@ Groups will be as follows:
|
||||
* ``target``: new target temperature (float)
|
||||
"""
|
||||
|
||||
regex_repetierTempBed = re.compile("TargetBed:(?P<target>%s)" % regex_positive_float_pattern)
|
||||
regex_repetierTempBed = re.compile("TargetBed:(?P<target>%s)" % regex_float_pattern)
|
||||
"""Regex for matching target temp reporting from Repetier for beds.
|
||||
|
||||
Groups will be as follows:
|
||||
|
||||
Reference in new issue
Block a user