From 9a5eae111b3b9a36f641cbd6d15bb553b0c95fcc Mon Sep 17 00:00:00 2001 From: Graham Sanderson Date: Wed, 25 Jan 2023 11:41:45 -0600 Subject: [PATCH] fix compiler warning (#1193) --- src/rp2_common/pico_cyw43_driver/cyw43_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rp2_common/pico_cyw43_driver/cyw43_driver.c b/src/rp2_common/pico_cyw43_driver/cyw43_driver.c index 677e6fb..008d6a1 100644 --- a/src/rp2_common/pico_cyw43_driver/cyw43_driver.c +++ b/src/rp2_common/pico_cyw43_driver/cyw43_driver.c @@ -95,10 +95,10 @@ static void cyw43_do_poll(async_context_t *context, __unused async_when_pending_ } } -static void cyw43_sleep_timeout_reached(async_context_t *context, async_at_time_worker_t *worker) { +static void cyw43_sleep_timeout_reached(async_context_t *context, __unused async_at_time_worker_t *worker) { assert(context == cyw43_async_context); assert(worker == &sleep_timeout_worker); - async_context_set_work_pending(cyw43_async_context, &cyw43_poll_worker); + async_context_set_work_pending(context, &cyw43_poll_worker); } bool cyw43_driver_init(async_context_t *context) {