Increase delay for `tty.usbmodem` on macOS.
**Problems** On macOS USB CDC ACM, which appears as `/dev/tty.usbmodem*`, somehow `lxterm` keeps failing to send a payload. **Solution** Increase delay. It's very unknown why to me, however, probably macOS USB CDC ACM driver implementation issue. **Testing** Tested on MacBook Air (2020, M1) for OrangeCrab (rev.0.2) target with Linux on LiteX SoC bitstream build from current commit and load prebuild Linux On LiteX image.
This commit is contained in:
parent
f9f1b8e25d
commit
0953c52eea
|
@ -314,6 +314,9 @@ class LiteXTerm:
|
||||||
if "ttyACM" in port:
|
if "ttyACM" in port:
|
||||||
self.payload_length = sfl_payload_length
|
self.payload_length = sfl_payload_length
|
||||||
self.delay = 1e-4
|
self.delay = 1e-4
|
||||||
|
elif "tty.usbmodem" in port:
|
||||||
|
self.payload_length = sfl_payload_length
|
||||||
|
self.delay = 1e-3
|
||||||
else:
|
else:
|
||||||
self.payload_length = 64
|
self.payload_length = 64
|
||||||
self.delay = 1e-5
|
self.delay = 1e-5
|
||||||
|
|
Loading…
Reference in New Issue