Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/pymc_core/hardware/kiss_modem_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,9 @@ def _write_frame(self, frame: bytes) -> bool:
except Exception as e:
logger.error("Serial write error: %s", e)
return False
try:
self.serial_conn.flush()
except Exception as e:
logger.error("Serial flush error: %s", e)
return False
# flush()/tcdrain() removed: hangs indefinitely on USB CDC ACM
# (e.g. ESP32 T3S3/S3 with TinyUSB). write() already copies data
# to the kernel USB buffer atomically; no drain needed.
return True

def _set_kiss_tx_delay(self, delay_ms: int) -> None:
Expand Down