Skip to content

Commit e50dbd2

Browse files
committed
libs/unit/rs485.py: Added sendbreak/flush/txdone method.
Signed-off-by: lbuque <[email protected]>
1 parent 0a5c5d5 commit e50dbd2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

m5stack/libs/unit/rs485.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,12 @@ def readline(self) -> bytes | None:
5353

5454
def any(self) -> int:
5555
return self._mdbus_uart.any()
56+
57+
def sendbreak(self) -> None:
58+
self._mdbus_uart.sendbreak()
59+
60+
def flush(self) -> None:
61+
self._mdbus_uart.flush()
62+
63+
def txdone(self) -> bool:
64+
return self._mdbus_uart.txdone()

0 commit comments

Comments
 (0)