MX hace 1 año
padre
commit
b58e3f6995
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      zeitraffer.c

+ 3 - 2
zeitraffer.c

@@ -106,9 +106,10 @@ static void input_callback(InputEvent* input_event, void* ctx) {
     furi_message_queue_put(event_queue, &event, FuriWaitForever);
 }
 
-static void timer_callback(FuriMessageQueue* event_queue) {
+static void timer_callback(void* ctx) {
     // Проверяем, что контекст не нулевой
-    furi_assert(event_queue);
+    furi_assert(ctx);
+    FuriMessageQueue* event_queue = ctx;
 
     ZeitrafferEvent event = {.type = EventTypeTick};
     furi_message_queue_put(event_queue, &event, 0);