Remember last state for CC1101 external + other fixes

Reset to internal module if external is not found on all apps, not only in bruteforcer
This commit is contained in:
MX
2023-03-16 15:02:23 +03:00
parent 49378f0893
commit bb9ac1389b
12 changed files with 114 additions and 53 deletions

View File

@@ -85,6 +85,7 @@ bool subghz_scene_start_on_event(void* context, SceneManagerEvent event) {
if(!furi_hal_subghz_check_radio()) {
furi_hal_subghz_set_radio_type(SubGhzRadioInternal);
subghz->last_settings->external_module_enabled = false;
furi_string_set(subghz->error_str, "Please connect\nexternal radio");
scene_manager_next_scene(subghz->scene_manager, SubGhzSceneShowErrorSub);
return true;