This commit is contained in:
gid9798 2023-05-20 15:05:26 +03:00
parent f6786d5a59
commit b11b0a4911
2 changed files with 7 additions and 0 deletions

View file

@ -42,6 +42,7 @@ SubGhzRemoteApp* subghz_remote_app_alloc() {
// View Dispatcher
app->view_dispatcher = view_dispatcher_alloc();
app->scene_manager = scene_manager_alloc(&subrem_scene_handlers, app);
view_dispatcher_enable_queue(app->view_dispatcher);
@ -127,6 +128,9 @@ void subghz_remote_app_free(SubGhzRemoteApp* app) {
view_dispatcher_remove_view(app->view_dispatcher, SubRemViewIDRemote);
subrem_view_remote_free(app->subrem_remote_view);
scene_manager_free(app->scene_manager);
view_dispatcher_free(app->view_dispatcher);
subghz_receiver_free(app->receiver);
subghz_environment_free(app->environment);
subghz_setting_free(app->setting);

View file

@ -288,7 +288,9 @@ static SubRemLoadMapState
// FURI_LOG_I(TAG, "Empty file path");
continue;
}
sub_preset_loaded = SubRemLoadSubStateErrorNoFile;
repeat = 200;
do {
if(!flipper_format_file_open_existing(
@ -386,6 +388,7 @@ static SubRemLoadMapState
sub_preset_loaded = SubRemLoadSubStateOK;
ret = SubRemLoadMapStateNotAllOK;
#if FURI_DEBUG
FURI_LOG_I(TAG, "%-16s - protocol Loaded", furi_string_get_cstr(sub_preset->label));
#endif