mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 06:43:21 +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;
|
||||
}
|
||||
|
||||
return -ENOTTY;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user