From ba0502ae1bb3d73baa04717da1b160416ee591c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Thu, 11 Aug 2022 20:18:02 +0900 Subject: [PATCH] SubGhz: show region provisioning message (#1580) * SubGhz: region provisioning message * SubGhz: correct region warning text --- .../subghz/scenes/subghz_scene_show_only_rx.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/applications/subghz/scenes/subghz_scene_show_only_rx.c b/applications/subghz/scenes/subghz_scene_show_only_rx.c index 48fa751e..22e68c97 100644 --- a/applications/subghz/scenes/subghz_scene_show_only_rx.c +++ b/applications/subghz/scenes/subghz_scene_show_only_rx.c @@ -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);