소스 검색

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

# Conflicts:
#	tictactoe/tictactoe_game.c
Willy-JL 1 년 전
부모
커밋
fad2bd459d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tictactoe/tictactoe_game.c

+ 2 - 2
tictactoe/tictactoe_game.c

@@ -289,16 +289,16 @@ static void tictactoe_draw_callback(Canvas* const canvas, void* ctx) {
 }
 
 static void tictactoe_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 tictactoe_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);