4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 03:30:26 +08:00

Merge pull request #5036 from mysterywolf/serial

[serial] 优化RT_USING_POSIX_TERMIOS预编译
This commit is contained in:
Bernard Xiong 2021-09-11 20:03:15 +08:00 committed by GitHub
commit f8a991d092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1112,6 +1112,7 @@ static rt_err_t rt_serial_control(struct rt_device *dev,
break;
case TCXONC:
break;
#endif /*RT_USING_POSIX_TERMIOS*/
case TIOCSWINSZ:
{
struct winsize* p_winsize;
@ -1202,7 +1203,6 @@ static rt_err_t rt_serial_control(struct rt_device *dev,
p_winsize->ws_ypixel = 0;/* unused */
}
break;
#endif /*RT_USING_POSIX_TERMIOS*/
case FIONREAD:
{
rt_size_t recved = 0;