From f984158a4e575db03574b780e40deb4ce6b7215b Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Sat, 15 Dec 2018 13:11:50 -0800 Subject: [PATCH] Treat machine alarmed warning as an error --- src/py/bbctrl/Comm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/py/bbctrl/Comm.py b/src/py/bbctrl/Comm.py index c10dcc3..a50d078 100644 --- a/src/py/bbctrl/Comm.py +++ b/src/py/bbctrl/Comm.py @@ -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: -- 2.27.0