diff --git a/applications/external/totp/workers/bt_type_code/bt_type_code.c b/applications/external/totp/workers/bt_type_code/bt_type_code.c index bf55dba6a..73e3dd2f5 100644 --- a/applications/external/totp/workers/bt_type_code/bt_type_code.c +++ b/applications/external/totp/workers/bt_type_code/bt_type_code.c @@ -18,8 +18,6 @@ #define TOTP_BT_WORKER_BT_MAC_ADDRESS_LEN GAP_MAC_ADDR_SIZE #endif -#define HID_BT_KEYS_STORAGE_PATH EXT_PATH("authenticator/.bt_hid.keys") - struct TotpBtTypeCodeWorkerContext { char* code_buffer; uint8_t code_buffer_size; @@ -159,7 +157,7 @@ TotpBtTypeCodeWorkerContext* totp_bt_type_code_worker_init() { bt_disconnect(context->bt); furi_hal_bt_reinit(); furi_delay_ms(200); - bt_keys_storage_set_storage_path(context->bt, HID_BT_KEYS_STORAGE_PATH); + bt_keys_storage_set_storage_path(context->bt, TOTP_BT_KEYS_STORAGE_PATH); #if TOTP_TARGET_FIRMWARE == TOTP_FIRMWARE_XTREME memcpy( @@ -227,4 +225,4 @@ void totp_bt_type_code_worker_free(TotpBtTypeCodeWorkerContext* context) { bool totp_bt_type_code_worker_is_advertising(const TotpBtTypeCodeWorkerContext* context) { return context->is_advertising; -} \ No newline at end of file +} diff --git a/applications/external/totp/workers/bt_type_code/bt_type_code.h b/applications/external/totp/workers/bt_type_code/bt_type_code.h index 85016592e..d0de55124 100644 --- a/applications/external/totp/workers/bt_type_code/bt_type_code.h +++ b/applications/external/totp/workers/bt_type_code/bt_type_code.h @@ -4,6 +4,8 @@ #include #include +#define TOTP_BT_KEYS_STORAGE_PATH EXT_PATH("authenticator/.bt_hid.keys") + typedef uint8_t TotpBtTypeCodeWorkerEvent; typedef struct TotpBtTypeCodeWorkerContext TotpBtTypeCodeWorkerContext; diff --git a/applications/settings/bt_settings_app/scenes/bt_settings_scene_forget_dev_confirm.c b/applications/settings/bt_settings_app/scenes/bt_settings_scene_forget_dev_confirm.c index 25e797d90..7fef6a0e6 100644 --- a/applications/settings/bt_settings_app/scenes/bt_settings_scene_forget_dev_confirm.c +++ b/applications/settings/bt_settings_app/scenes/bt_settings_scene_forget_dev_confirm.c @@ -2,6 +2,7 @@ #include #include #include +#include void bt_settings_scene_forget_dev_confirm_dialog_callback(DialogExResult result, void* context) { furi_assert(context); @@ -39,7 +40,7 @@ bool bt_settings_scene_forget_dev_confirm_on_event(void* context, SceneManagerEv storage_simply_remove(storage, BAD_KB_KEYS_PATH); storage_simply_remove( storage, EXT_PATH("apps_data/hid_ble/") HID_BT_KEYS_STORAGE_NAME); - storage_simply_remove(storage, EXT_PATH("authenticator/.bt_hid.keys")); + storage_simply_remove(storage, TOTP_BT_KEYS_STORAGE_PATH); furi_record_close(RECORD_STORAGE); scene_manager_next_scene(app->scene_manager, BtSettingsAppSceneForgetDevSuccess);