Sfoglia il codice sorgente

BLE Spam: Fix exit with beacon without attacking

Willy-JL 1 anno fa
parent
commit
d8452ec866
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      ble_spam/ble_spam.c

+ 3 - 0
ble_spam/ble_spam.c

@@ -724,6 +724,9 @@ int32_t ble_spam(void* p) {
     furi_thread_free(state->thread);
     free(state);
 
+    if(furi_hal_bt_extra_beacon_is_active()) {
+        furi_check(furi_hal_bt_extra_beacon_stop());
+    }
     if(prev_cfg_ptr) {
         furi_check(furi_hal_bt_extra_beacon_set_config(&prev_cfg));
     }