mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 22:33:34 +08:00
VDev POSIX: Fix non-POSIX conformant return value handling
This commit is contained in:
@@ -201,7 +201,7 @@ int px4_ioctl(int fd, int cmd, unsigned long arg)
|
||||
px4_errno = -ret;
|
||||
}
|
||||
|
||||
return (ret == 0) ? PX4_OK : PX4_ERROR;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int px4_poll(px4_pollfd_struct_t *fds, nfds_t nfds, int timeout)
|
||||
|
||||
Reference in New Issue
Block a user