mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 16:58:36 -07:00
Fix very old and funny subghz bugs
Fixed Frequency Ananyzer issues Fixed read mode issues Fixed re-inits in HAL
This commit is contained in:
@@ -48,6 +48,11 @@ void furi_hal_subghz_select_radio_type(SubGhzRadioType state) {
|
||||
}
|
||||
|
||||
bool furi_hal_subghz_init_radio_type(SubGhzRadioType state) {
|
||||
if(state == SubGhzRadioInternal && furi_hal_subghz.cc1101_g0_pin == &gpio_cc1101_g0) {
|
||||
return true;
|
||||
} else if(state == SubGhzRadioExternal && furi_hal_subghz.cc1101_g0_pin == &gpio_cc1101_g0_ext) {
|
||||
return true;
|
||||
}
|
||||
furi_hal_spi_bus_handle_deinit(furi_hal_subghz.spi_bus_handle);
|
||||
|
||||
if(state == SubGhzRadioInternal) {
|
||||
|
||||
Reference in New Issue
Block a user