[FL-1220] BLE scan MAC addresses test (#939)
* bt: refactore cli commands * bt: add radio stack control, add scan mac addresses * bt: refactore with new furi-hal-bt API * bt: f6 targer sync * bt: code cleanup, update documentation * Bt: new command names, proper radio stack handling Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
9
applications/bt/bt_debug_app/bt_debug_app.c
Executable file → Normal file
9
applications/bt/bt_debug_app/bt_debug_app.c
Executable file → Normal file
@@ -1,6 +1,8 @@
|
||||
#include "bt_debug_app.h"
|
||||
#include <furi-hal-bt.h>
|
||||
|
||||
#define TAG "BtDebugApp"
|
||||
|
||||
enum BtDebugSubmenuIndex {
|
||||
BtDebugSubmenuIndexCarrierTest,
|
||||
BtDebugSubmenuIndexPacketTest,
|
||||
@@ -92,6 +94,13 @@ void bt_debug_app_free(BtDebugApp* app) {
|
||||
}
|
||||
|
||||
int32_t bt_debug_app(void* p) {
|
||||
if(furi_hal_bt_get_radio_stack() != FuriHalBtStackHciLayer) {
|
||||
FURI_LOG_E(TAG, "Incorrect radio stack, replace with HciLayer for tests.");
|
||||
DialogsApp* dialogs = furi_record_open("dialogs");
|
||||
dialog_message_show_storage_error(dialogs, "Incorrect\nRadioStack");
|
||||
return 255;
|
||||
}
|
||||
|
||||
BtDebugApp* app = bt_debug_app_alloc();
|
||||
// Stop advertising
|
||||
furi_hal_bt_stop_advertising();
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include <gui/gui.h>
|
||||
#include <gui/view.h>
|
||||
#include <gui/view_dispatcher.h>
|
||||
#include <dialogs/dialogs.h>
|
||||
|
||||
#include <gui/modules/submenu.h>
|
||||
#include "views/bt_carrier_test.h"
|
||||
|
Reference in New Issue
Block a user