Sfoglia il codice sorgente

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

# Conflicts:
#	hc_sr04/hc_sr04.c
Willy-JL 1 anno fa
parent
commit
5668416d85
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      hc_sr04/hc_sr04.c

+ 1 - 1
hc_sr04/hc_sr04.c

@@ -90,8 +90,8 @@ static void render_callback(Canvas* const canvas, void* ctx) {
 }
 
 static void input_callback(InputEvent* input_event, void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     PluginEvent event = {.type = EventTypeKey, .input = *input_event};
     furi_message_queue_put(event_queue, &event, FuriWaitForever);