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

@@ -738,6 +738,11 @@ SubGHzRemote* subghz_remote_alloc(void) {
// Enable power for External CC1101 if it is connected
furi_hal_subghz_enable_ext_power();
// Auto switch to internal radio if external radio is not available
furi_delay_ms(15);
if(!furi_hal_subghz_check_radio()) {
furi_hal_subghz_set_radio_type(SubGhzRadioInternal);
}
furi_hal_power_suppress_charge_enter();