From bcf37a1bd4ba6d077742dca79225230e679dc896 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:18:19 +0200 Subject: [PATCH] Get BT settings from RAM for CLI --- applications/services/bt/bt_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/services/bt/bt_cli.c b/applications/services/bt/bt_cli.c index 1abc2f0dd..288463efe 100644 --- a/applications/services/bt/bt_cli.c +++ b/applications/services/bt/bt_cli.c @@ -181,12 +181,12 @@ static void bt_cli_print_usage(void) { static void bt_cli(Cli* cli, FuriString* args, void* context) { UNUSED(context); - furi_record_open(RECORD_BT); + Bt* bt = furi_record_open(RECORD_BT); FuriString* cmd; cmd = furi_string_alloc(); BtSettings bt_settings; - bt_settings_load(&bt_settings); + bt_get_settings(bt, &bt_settings); do { if(!args_read_string_and_trim(args, cmd)) {