mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 15:23:34 +08:00
Merge commit '920608bf3671662f94b4939ffdaf6fde2b08edff'
This commit is contained in:
@@ -660,8 +660,10 @@ static int uart_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
int ret = dev->ops->ioctl(filep, cmd, arg);
|
||||
|
||||
/* If the low-level handler didn't handle the call, see if we can handle it here */
|
||||
|
||||
/*
|
||||
* The device ioctl() handler returns -ENOTTY when it doesn't know
|
||||
* how to handle the command. Check if we can handle it here.
|
||||
*/
|
||||
if (ret == -ENOTTY)
|
||||
{
|
||||
switch (cmd)
|
||||
|
||||
Reference in New Issue
Block a user