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:
commit
f8a991d092
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user