mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08: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:
committed by
Xiang Xiao
parent
b540618e9f
commit
0d0c02205b
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user