Also interpret lines starting with "!!" as errors from the firmware

(see http://reprap.org/wiki/G-code#Replies_from_the_RepRap_machine_to_the_host_computer)
This commit is contained in:
Gina Häußge committed 2014-11-03 21:40:21 +01:00
1 parent ca6364e5d4
commit ff96e2e4d6
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -986,7 +986,7 @@ class MachineCom(object):
def _handleErrors(self, line):
# No matter the state, if we see an error, goto the error state and store the error for reference.
if line.startswith('Error:'):
if line.startswith('Error:') or line.startswith('!!'):
#Oh YEAH, consistency.
# Marlin reports an MIN/MAX temp error as "Error:x\n: Extruder switched off. MAXTEMP triggered !\n"
# But a bed temp error is reported as "Error: Temperature heated bed switched off. MAXTEMP triggered !!"