mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 04:53:08 +00:00
SubGhz: show region provisioning message (#1580)
* SubGhz: region provisioning message * SubGhz: correct region warning text
This commit is contained in:
parent
fae392d84e
commit
ba0502ae1b
1 changed files with 5 additions and 7 deletions
|
@ -12,13 +12,11 @@ void subghz_scene_show_only_rx_on_enter(void* context) {
|
|||
// Setup view
|
||||
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);
|
||||
const char* text = "This frequency can\nonly be used for RX\nin your region";
|
||||
if(!furi_hal_region_is_provisioned()) {
|
||||
text = "Update Flipper to unlock frequencies allowed in your region";
|
||||
}
|
||||
popup_set_text(popup, text, 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);
|
||||
|
|
Loading…
Reference in a new issue