From 25655af241b83ac5cb78e1c7fdd57b54f69215aa Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Wed, 28 Aug 2024 17:01:35 -0300 Subject: [PATCH] Updated to API 72.1 --- solitaire.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solitaire.c b/solitaire.c index 3b88acd995e..8b4d80b0179 100644 --- a/solitaire.c +++ b/solitaire.c @@ -434,13 +434,15 @@ void init_start(GameState *game_state) { } -static void input_callback(InputEvent *input_event, FuriMessageQueue *event_queue) { +static void input_callback(InputEvent *input_event, void* ctx) { + FuriMessageQueue* event_queue = ctx; furi_assert(event_queue); AppEvent event = {.type = EventTypeKey, .input = *input_event}; furi_message_queue_put(event_queue, &event, FuriWaitForever); } -static void update_timer_callback(FuriMessageQueue *event_queue) { +static void update_timer_callback(void* ctx) { + FuriMessageQueue* event_queue = ctx; furi_assert(event_queue); AppEvent event = {.type = EventTypeTick}; furi_message_queue_put(event_queue, &event, 0);