Skip to content

Commit

Permalink
Fix for API change, wrap message queue in container.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezod committed May 31, 2024
1 parent cf5342a commit 068b44d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metronome.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ static void render_callback(Canvas* const canvas, void* ctx) {
furi_mutex_release(metronome_state->mutex);
}

static void input_callback(InputEvent* input_event, FuriMessageQueue* event_queue) {
furi_assert(event_queue);
static void input_callback(InputEvent* input_event, void* context) {
furi_assert(context);
FuriMessageQueue* event_queue = context;

PluginEvent event = {.type = EventTypeKey, .input = *input_event};
furi_message_queue_put(event_queue, &event, FuriWaitForever);
Expand Down

0 comments on commit 068b44d

Please sign in to comment.