mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 17:38:35 -07:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user