SubGhz: extended frequency for Australia to 321.95 MHz (#934)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Skorpionm 2022-01-02 21:42:28 +04:00 committed by GitHub
parent 1202f9b82d
commit 065241fe5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -580,13 +580,13 @@ bool furi_hal_subghz_is_tx_allowed(uint32_t value) {
} }
break; break;
case FuriHalVersionRegionUsCaAu: case FuriHalVersionRegionUsCaAu:
//304,10..315,25; 433,05..434,79; 915,00..928,00 //304,10..321,95; 433,05..434,79; 915,00..928,00
if(!(value >= 304100000 && value <= 315250000) && if(!(value >= 304100000 && value <= 321950000) &&
!(value >= 433050000 && value <= 434790000) && !(value >= 433050000 && value <= 434790000) &&
!(value >= 915000000 && value <= 928000000)) { !(value >= 915000000 && value <= 928000000)) {
} else { } else {
if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) { if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) {
if((value >= 304100000 && value <= 315250000) && if((value >= 304100000 && value <= 321950000) &&
((furi_hal_subghz_preset == FuriHalSubGhzPresetOok270Async) || ((furi_hal_subghz_preset == FuriHalSubGhzPresetOok270Async) ||
(furi_hal_subghz_preset == FuriHalSubGhzPresetOok650Async))) { (furi_hal_subghz_preset == FuriHalSubGhzPresetOok650Async))) {
furi_hal_subghz_load_patable(furi_hal_subghz_preset_ook_async_patable_au); furi_hal_subghz_load_patable(furi_hal_subghz_preset_ook_async_patable_au);

View File

@ -580,13 +580,13 @@ bool furi_hal_subghz_is_tx_allowed(uint32_t value) {
} }
break; break;
case FuriHalVersionRegionUsCaAu: case FuriHalVersionRegionUsCaAu:
//304,10..315,25; 433,05..434,79; 915,00..928,00 //304,10..321,95; 433,05..434,79; 915,00..928,00
if(!(value >= 304100000 && value <= 315250000) && if(!(value >= 304100000 && value <= 321950000) &&
!(value >= 433050000 && value <= 434790000) && !(value >= 433050000 && value <= 434790000) &&
!(value >= 915000000 && value <= 928000000)) { !(value >= 915000000 && value <= 928000000)) {
} else { } else {
if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) { if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) {
if((value >= 304100000 && value <= 315250000) && if((value >= 304100000 && value <= 321950000) &&
((furi_hal_subghz_preset == FuriHalSubGhzPresetOok270Async) || ((furi_hal_subghz_preset == FuriHalSubGhzPresetOok270Async) ||
(furi_hal_subghz_preset == FuriHalSubGhzPresetOok650Async))) { (furi_hal_subghz_preset == FuriHalSubGhzPresetOok650Async))) {
furi_hal_subghz_load_patable(furi_hal_subghz_preset_ook_async_patable_au); furi_hal_subghz_load_patable(furi_hal_subghz_preset_ook_async_patable_au);