nuttx/drivers:Modify errcode returned by relay_ioctl
Fixed system function call failure due to return errcode error Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
This commit is contained in:
parent
37e1f5db47
commit
f526b91165
@ -116,7 +116,7 @@ static int relay_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = -ENOTSUP;
|
||||
ret = -ENOTTY;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user