mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 03:30:35 +08:00
Nuttx added FIONSPACE and fixed FIONWRITE: had retuned the space and should have returned enqueued count
This commit is contained in:
committed by
Lorenz Meier
parent
81d00e730a
commit
3ed0bfe0d8
@@ -136,12 +136,8 @@ SyslinkBridge::ioctl(struct file *filp, int cmd, unsigned long arg)
|
||||
// All termios commands should be silently ignored as they are handled
|
||||
|
||||
switch (cmd) {
|
||||
#ifdef FIONSPACE
|
||||
|
||||
case FIONSPACE:
|
||||
#else
|
||||
case FIONWRITE:
|
||||
#endif
|
||||
*((int *) arg) = _link->_writebuffer.space() * CRTP_MAX_DATA_SIZE;
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user