ソースを参照

Merge flappy_bird from https://github.com/xMasterX/all-the-plugins

# Conflicts:
#	flappy_bird/flappy_bird.c
Willy-JL 1 年間 前
コミット
ee516f63d9
1 ファイル変更2 行追加2 行削除
  1. 2 2
      flappy_bird/flappy_bird.c

+ 2 - 2
flappy_bird/flappy_bird.c

@@ -270,16 +270,16 @@ static void flappy_game_render_callback(Canvas* const canvas, void* ctx) {
 }
 
 static void flappy_game_input_callback(InputEvent* input_event, void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     GameEvent event = {.type = EventTypeKey, .input = *input_event};
     furi_message_queue_put(event_queue, &event, FuriWaitForever);
 }
 
 static void flappy_game_update_timer_callback(void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     GameEvent event = {.type = EventTypeTick};
     furi_message_queue_put(event_queue, &event, 0);