Move config file migration to flipper init

This commit is contained in:
Willy-JL
2023-05-10 23:36:03 +01:00
parent 3bc95bc132
commit d91f70b837
11 changed files with 54 additions and 93 deletions

View File

@@ -126,10 +126,6 @@ Bt* bt_alloc() {
bt_settings_save(&bt->bt_settings);
}
// Keys storage
Storage* storage = furi_record_open(RECORD_STORAGE);
storage_common_copy(storage, BT_KEYS_STORAGE_OLD_PATH, BT_KEYS_STORAGE_PATH);
storage_common_remove(storage, BT_KEYS_STORAGE_OLD_PATH);
furi_record_close(RECORD_STORAGE);
bt->keys_storage = bt_keys_storage_alloc(BT_KEYS_STORAGE_PATH);
// Alloc queue
bt->message_queue = furi_message_queue_alloc(8, sizeof(BtMessage));