Merge pull request #964 from niw/increase_macos_ttyusbmodem_delay

Increase delay for `tty.usbmodem` on macOS.
This commit is contained in:
enjoy-digital 2021-07-06 18:51:28 +02:00 committed by GitHub
commit dd5413bc9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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