subghz frequency range updates

This commit is contained in:
MX
2022-08-03 00:32:55 +03:00
parent bdd2dc288a
commit 53e60cc8e8
7 changed files with 60 additions and 58 deletions

View File

@@ -13,12 +13,7 @@ void subghz_scene_show_only_rx_on_enter(void* context) {
Popup* popup = subghz->popup;
popup_set_icon(popup, 67, 12, &I_DolphinFirstStart7_61x51);
popup_set_text(
popup,
"This frequency can\nonly be used for RX\nin your region",
38,
40,
AlignCenter,
AlignBottom);
popup, "This frequency is\noutside of default\nrange", 38, 40, AlignCenter, AlignBottom);
popup_set_timeout(popup, 1500);
popup_set_context(popup, subghz);
popup_set_callback(popup, subghz_scene_show_only_rx_popup_callback);

View File

@@ -54,7 +54,7 @@ void subghz_cli_command_tx_carrier(Cli* cli, string_t args, void* context) {
furi_delay_ms(250);
}
} else {
printf("This frequency can only be used for RX in your region\r\n");
printf("This frequency can only be used for RX in your settings\r\n");
}
furi_hal_subghz_set_path(FuriHalSubGhzPathIsolate);
@@ -535,7 +535,7 @@ static void subghz_cli_command_chat(Cli* cli, string_t args) {
}
if(!furi_hal_subghz_is_tx_allowed(frequency)) {
printf(
"In your region, only reception on this frequency (%lu) is allowed,\r\n"
"In your settings, only reception on this frequency (%lu) is allowed,\r\n"
"the actual operation of the application is not possible\r\n ",
frequency);
return;

View File

@@ -223,7 +223,7 @@ void subghz_dialog_message_show_only_rx(SubGhz* subghz) {
dialog_message_set_text(
message,
"This frequency\nis restricted to\nreceiving only\nin your region.",
"Frequency\nis outside of\ndefault range.\nCheck docs.",
3,
17,
AlignLeft,
@@ -279,7 +279,7 @@ bool subghz_key_load(SubGhz* subghz, const char* file_path, bool show_dialog) {
}
if(!furi_hal_subghz_is_tx_allowed(temp_data32)) {
FURI_LOG_E(TAG, "This frequency can only be used for RX in your region");
FURI_LOG_E(TAG, "This frequency can only be used for RX");
load_key_state = SubGhzLoadKeyStateOnlyRx;
break;
}