Przeglądaj źródła

BLE Spam: Fix exit with beacon without attacking

Willy-JL 1 rok temu
rodzic
commit
d8452ec866
1 zmienionych plików z 3 dodań i 0 usunięć
  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);
     furi_thread_free(state->thread);
     free(state);
     free(state);
 
 
+    if(furi_hal_bt_extra_beacon_is_active()) {
+        furi_check(furi_hal_bt_extra_beacon_stop());
+    }
     if(prev_cfg_ptr) {
     if(prev_cfg_ptr) {
         furi_check(furi_hal_bt_extra_beacon_set_config(&prev_cfg));
         furi_check(furi_hal_bt_extra_beacon_set_config(&prev_cfg));
     }
     }