Skip to content

Commit 5ff1352

Browse files
committed
Use firmware that is present, without trying to change it
1 parent ac2137f commit 5ff1352

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

buildhat/serinterface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def __init__(self, firmware, signature, version, device="/dev/serial0", debug=Fa
104104

105105
self.ser = serial.Serial(device, 115200, timeout=5)
106106
# Check if we're in the bootloader or the firmware
107+
"""
107108
self.write(b"version\r")
108109
109110
emptydata = 0
@@ -144,7 +145,8 @@ def __init__(self, firmware, signature, version, device="/dev/serial0", debug=Fa
144145
self.loadfirmware(firmware, signature)
145146
elif self.state == HatState.OTHER:
146147
raise BuildHATError("HAT not found")
147-
148+
"""
149+
self.state = HatState.FIRMWARE
148150
self.cbqueue = queue.Queue()
149151
self.cb = threading.Thread(target=self.callbackloop, args=(self.cbqueue,))
150152
self.cb.daemon = True

0 commit comments

Comments
 (0)