mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 12:10:36 +08:00
Fixed return value
This commit is contained in:
@@ -261,6 +261,7 @@ CDev::ioctl(struct file *filp, int cmd, unsigned long arg)
|
||||
break;
|
||||
case DEVIOCSPUBBLOCK:
|
||||
_pub_blocked = (arg != 0);
|
||||
return OK;
|
||||
break;
|
||||
case DEVIOCGPUBBLOCK:
|
||||
return _pub_blocked;
|
||||
|
||||
Reference in New Issue
Block a user