mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 05:13:34 +08:00
Linux: fixed bad return value
Function was always returning -ENOTTY instead of the "ret" variable. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -315,7 +315,7 @@ VDev::ioctl(px4_dev_handle_t *handlep, int cmd, unsigned long arg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -ENOTTY;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|||||||
Reference in New Issue
Block a user