mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-15 04:19:26 -07:00
Get BT settings from RAM for CLI
This commit is contained in:
@@ -181,12 +181,12 @@ static void bt_cli_print_usage(void) {
|
|||||||
|
|
||||||
static void bt_cli(Cli* cli, FuriString* args, void* context) {
|
static void bt_cli(Cli* cli, FuriString* args, void* context) {
|
||||||
UNUSED(context);
|
UNUSED(context);
|
||||||
furi_record_open(RECORD_BT);
|
Bt* bt = furi_record_open(RECORD_BT);
|
||||||
|
|
||||||
FuriString* cmd;
|
FuriString* cmd;
|
||||||
cmd = furi_string_alloc();
|
cmd = furi_string_alloc();
|
||||||
BtSettings bt_settings;
|
BtSettings bt_settings;
|
||||||
bt_settings_load(&bt_settings);
|
bt_get_settings(bt, &bt_settings);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if(!args_read_string_and_trim(args, cmd)) {
|
if(!args_read_string_and_trim(args, cmd)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user