diff --git a/buildhat/serinterface.py b/buildhat/serinterface.py index 05f864b..bddcc84 100644 --- a/buildhat/serinterface.py +++ b/buildhat/serinterface.py @@ -104,6 +104,7 @@ def __init__(self, firmware, signature, version, device="/dev/serial0", debug=Fa self.ser = serial.Serial(device, 115200, timeout=5) # Check if we're in the bootloader or the firmware + """ self.write(b"version\r") emptydata = 0 @@ -144,7 +145,8 @@ def __init__(self, firmware, signature, version, device="/dev/serial0", debug=Fa self.loadfirmware(firmware, signature) elif self.state == HatState.OTHER: raise BuildHATError("HAT not found") - + """ + self.state = HatState.FIRMWARE self.cbqueue = queue.Queue() self.cb = threading.Thread(target=self.callbackloop, args=(self.cbqueue,)) self.cb.daemon = True