mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
add a flag of lin internal sleep/wakeup state
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
This commit is contained in:
@@ -1217,7 +1217,7 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd,
|
||||
case SIOCSCANSTATE: /* Set the LIN/CAN controller state */
|
||||
if (dev->d_ioctl)
|
||||
{
|
||||
FAR enum can_ioctl_state_e *can_state =
|
||||
FAR struct can_ioctl_state_s *can_state =
|
||||
&req->ifr_ifru.ifru_can_state;
|
||||
ret = dev->d_ioctl(dev, cmd,
|
||||
(unsigned long)(uintptr_t)can_state);
|
||||
|
||||
Reference in New Issue
Block a user