فهرست منبع

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

# Conflicts:
#	tama_p1/tama_p1.c
Willy-JL 1 سال پیش
والد
کامیت
21fccf6fba
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      tama_p1/tama_p1.c

+ 2 - 2
tama_p1/tama_p1.c

@@ -459,16 +459,16 @@ static void tama_p1_draw_callback(Canvas* const canvas, void* cb_ctx) {
 }
 
 static void tama_p1_input_callback(InputEvent* input_event, void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     TamaEvent event = {.type = EventTypeInput, .input = *input_event};
     furi_message_queue_put(event_queue, &event, FuriWaitForever);
 }
 
 static void tama_p1_update_timer_callback(void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     TamaEvent event = {.type = EventTypeTick};
     furi_message_queue_put(event_queue, &event, 0);