Close serial connection (async).
(self)
| 281 | ) |
| 282 | |
| 283 | async def close(self) -> None: |
| 284 | """Close serial connection (async).""" |
| 285 | self._connected = False |
| 286 | if self._serial is not None: |
| 287 | await self._serial.close() |
| 288 | self._serial = None |
| 289 | await asyncio.sleep(0) # Yield control |
| 290 | |
| 291 | async def drain_boot_output( |
| 292 | self, max_lines: int = 100, verbose: bool = False |
no outgoing calls
no test coverage detected