mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 15:25:24 +00:00
drivers/timers: Fix oneshot callback arg.
This commit fixed the oneshot callback arg problem. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
parent
b540618e9f
commit
0d0c02205b
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ int oneshot_register(FAR const char *devname,
|
|||
priv->od_lower = lower;
|
||||
|
||||
lower->callback = oneshot_callback;
|
||||
lower->arg = lower;
|
||||
lower->arg = priv;
|
||||
|
||||
nxmutex_init(&priv->od_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue