From 0d0c02205b8068a81846d4854f2dfb1abc39622b Mon Sep 17 00:00:00 2001 From: ouyangxiangzhen Date: Thu, 20 Nov 2025 14:21:45 +0800 Subject: [PATCH] drivers/timers: Fix oneshot callback arg. This commit fixed the oneshot callback arg problem. Signed-off-by: ouyangxiangzhen --- drivers/timers/oneshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/timers/oneshot.c b/drivers/timers/oneshot.c index 9c1204fa8c0..4dc15c440a6 100644 --- a/drivers/timers/oneshot.c +++ b/drivers/timers/oneshot.c @@ -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);