Treat machine alarmed warning as an error
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Sat, 15 Dec 2018 21:11:50 +0000 (13:11 -0800)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Sat, 15 Dec 2018 21:11:50 +0000 (13:11 -0800)
src/py/bbctrl/Comm.py

index c10dcc30b25da541b41fdd42c943d116ea1f592e..a50d07885226f6b4552e26cd151258fa7dc5ad4b 100644 (file)
@@ -170,6 +170,10 @@ class Comm(object):
 
         if level == 'error': self.comm_error()
 
+        # Treat machine alarmed warning as an error
+        if level == 'warning' and 'code' in msg and msg['code'] == 11:
+            self.comm_error()
+
 
     def _serial_read(self):
         try: