Kaynağa Gözat

add forgotten var

MX 2 yıl önce
ebeveyn
işleme
792c955944
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      nrfsniff.c

+ 1 - 0
nrfsniff.c

@@ -327,6 +327,7 @@ int32_t nrfsniff_app(void* p) {
         return 255;
         return 255;
     }
     }
 
 
+    uint8_t attempts = 0;
     bool otg_was_enabled = furi_hal_power_is_otg_enabled();
     bool otg_was_enabled = furi_hal_power_is_otg_enabled();
     while(!furi_hal_power_is_otg_enabled() && attempts++ < 5) {
     while(!furi_hal_power_is_otg_enabled() && attempts++ < 5) {
         furi_hal_power_enable_otg();
         furi_hal_power_enable_otg();