You've already forked M5Stack_Linux_Libs
mirror of
https://github.com/m5stack/M5Stack_Linux_Libs.git
synced 2026-05-20 11:01:38 -07:00
[add] uart Close decision
This commit is contained in:
@@ -175,7 +175,7 @@ int linux_uart_init(char* dev, void* param)
|
||||
void linux_uart_deinit(int fd)
|
||||
{
|
||||
int res;
|
||||
|
||||
if(fd <= 0) return;
|
||||
res = close(fd);
|
||||
if (res < 0)
|
||||
fprintf(stderr, "uart close fd(%d) err:%s\n", fd, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user