瀏覽代碼

add forgotten var

MX 2 年之前
父節點
當前提交
79980cb8c3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      nrf24channelscanner.c

+ 1 - 0
nrf24channelscanner.c

@@ -168,6 +168,7 @@ int32_t nrf24channelscanner_main(void* p) {
     Event event;
     FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(Event));
 
+    uint8_t attempts = 0;
     bool otg_was_enabled = furi_hal_power_is_otg_enabled();
     while(!furi_hal_power_is_otg_enabled() && attempts++ < 5) {
         furi_hal_power_enable_otg();