Skip to content

Commit

Permalink
utils/serial_port: wait 100ms between transmitted characters
Browse files Browse the repository at this point in the history
  • Loading branch information
lschuermann committed Jan 3, 2025
1 parent 8ded9e3 commit 8a257b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hwci/utils/serial_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def expect(self, pattern, timeout=10, timeout_error=True):

def write(self, data):
logging.debug(f"Writing data: {data}")
self.ser.write(data)
for byte in data:
self.ser.write(bytes([byte]))
time.sleep(0.1)

def close(self):
self.ser.close()
Expand Down

0 comments on commit 8a257b9

Please sign in to comment.