mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 02:48: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:
5
applications/external/playlist/playlist.c
vendored
5
applications/external/playlist/playlist.c
vendored
@@ -713,6 +713,11 @@ int32_t playlist_app(void* p) {
|
||||
|
||||
// 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