From 9257a402f65a851fd0fb52b0561563b61eea9168 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Fri, 3 May 2024 18:35:55 +0300 Subject: [PATCH] fix pocsag version and about --- .../pocsag_pager/helpers/pocsag_pager_types.h | 5 +++-- .../pocsag_pager/scenes/pocsag_pager_scene_about.c | 14 +++++--------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/base_pack/pocsag_pager/helpers/pocsag_pager_types.h b/base_pack/pocsag_pager/helpers/pocsag_pager_types.h index fabd7f3213d..6138af41c46 100644 --- a/base_pack/pocsag_pager/helpers/pocsag_pager_types.h +++ b/base_pack/pocsag_pager/helpers/pocsag_pager_types.h @@ -3,8 +3,9 @@ #include #include -#define PCSG_VERSION_APP "0.1" -#define PCSG_DEVELOPED "@xMasterX & @Shmuma" +#define PCSG_VERSION_APP FAP_VERSION +#define PCSG_DEVELOPED \ + "@xMasterX & @Shmuma\nProtocol improvements by:\n@htotoo\nIcons by:\n@Svaarich" #define PCSG_GITHUB "https://github.com/xMasterX/flipper-pager" #define PCSG_KEY_FILE_VERSION 1 diff --git a/base_pack/pocsag_pager/scenes/pocsag_pager_scene_about.c b/base_pack/pocsag_pager/scenes/pocsag_pager_scene_about.c index 2af33c8bf40..0c35f7f61a3 100644 --- a/base_pack/pocsag_pager/scenes/pocsag_pager_scene_about.c +++ b/base_pack/pocsag_pager/scenes/pocsag_pager_scene_about.c @@ -20,16 +20,12 @@ void pocsag_pager_scene_about_on_enter(void* context) { furi_string_cat_printf(temp_str, "Github: %s\n\n", PCSG_GITHUB); furi_string_cat_printf(temp_str, "\e#%s\n", "Description"); - furi_string_cat_printf(temp_str, "Receiving POCSAG Pager \nmessages\n\n"); + furi_string_cat_printf( + temp_str, + "Receiving POCSAG Pager \nmessages \nDefault frequency is set to\nDAPNET - 439987500\n\nUse Config button to set frequency\nCustom frequencies usually can be found in the end of the list - use right arrow button to scroll to the end\n\nTo add new modulations and\nfrequencies create file\n/pocsag/settings.txt\nAnd copy \nsubghz/assets/setting_user.example\ncontents into new\nsettings.txt\n\n"); - furi_string_cat_printf(temp_str, "Supported protocols:\n"); - size_t i = 0; - const char* protocol_name = - subghz_environment_get_protocol_name_registry(app->txrx->environment, i++); - do { - furi_string_cat_printf(temp_str, "%s\n", protocol_name); - protocol_name = subghz_environment_get_protocol_name_registry(app->txrx->environment, i++); - } while(protocol_name != NULL); + furi_string_cat_printf( + temp_str, "Supported protocols:\nPOCSAG 512\nPOCSAG 1200\nPOCSAG 2400\n"); widget_add_text_box_element( app->widget,