[serial] 优化RT_USING_POSIX_TERMIOS预编译

This commit is contained in:
Meco Man 2021-09-09 13:31:41 -04:00
parent 7fa1c819ee
commit c1c63fc10c
1 changed files with 1 additions and 1 deletions

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;