瀏覽代碼

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

# Conflicts:
#	hc_sr04/hc_sr04.c
Willy-JL 1 年之前
父節點
當前提交
5668416d85
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);