Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorあく <alleteam@gmail.com>2022-01-27 15:21:21 +0300
committerGitHub <noreply@github.com>2022-01-27 15:21:21 +0300
commite804015fea80cd535c1b9357aef87f81f3064a6c (patch)
treee2f8a635224ac2b7db9f3f27e403fa4e0b0a2ed2
parent23ff6723cf870b999b75caee06b9f95a34c52534 (diff)
[FL-2225] About: add serial number to hardware info screen (#970)
-rw-r--r--applications/about/about.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/about/about.c b/applications/about/about.c
index b153841e..22b8a3a3 100644
--- a/applications/about/about.c
+++ b/applications/about/about.c
@@ -89,6 +89,12 @@ static DialogMessageButton hw_version_screen(DialogsApp* dialogs, DialogMessage*
furi_hal_version_get_hw_connect(),
my_name ? my_name : "Unknown");
+ string_cat_printf(buffer, "Serial number:\n");
+ const uint8_t* uid = furi_hal_version_uid();
+ for(size_t i = 0; i < furi_hal_version_uid_size(); i++) {
+ string_cat_printf(buffer, "%02X", uid[i]);
+ }
+
dialog_message_set_header(message, "HW Version info:", 0, 0, AlignLeft, AlignTop);
dialog_message_set_text(message, string_get_cstr(buffer), 0, 13, AlignLeft, AlignTop);
result = dialog_message_show(dialogs, message);