Disable print when reconnect

This commit is contained in:
wh201906 committed 2024-01-01 15:55:54 +08:00
1 parent c250fc1200
commit 47376c84ea
4 files changed
+19 -11

No files matched your search

+3 -1
View File
@@ -40,8 +40,10 @@ typedef void *serial_port;
* used for future references to that port.
*
* On errors, this method returns INVALID_SERIAL_PORT or CLAIMED_SERIAL_PORT.
* If slient is set to false, this function will print the error information
* when error occurs.
*/
serial_port uart_open(const char *pcPortName, uint32_t speed);
serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient);
/* Closes the given port.
*/