Skip to content

Commit

Permalink
Merge pull request #31 from ezod/wrap-message-queue
Browse files Browse the repository at this point in the history
Fix for API change, wrap message queue in container.
  • Loading branch information
ezod authored May 31, 2024
2 parents ebd7d20 + 965dcbe commit 25fe22c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ static void render_callback(Canvas* const canvas, void* context) {
furi_mutex_release(gps_uart->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 25fe22c

Please sign in to comment.