summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/FirmwareValidation.cpp
diff options
context:
space:
mode:
authorStoian Minaiev <stoyan.minaev@gmail.com>2021-05-13 22:09:40 (GMT)
committerStoian Minaiev <stoyan.minaev@gmail.com>2021-05-13 22:09:40 (GMT)
commita4de61e1f5c7842d25bac0cfb22e4a9f0bff671c (patch)
tree224aecd5ca4bd24de93d62fc6ce5787d253149d8 /src/displayapp/screens/FirmwareValidation.cpp
parente04c8ee95ea9b5fe444b7a21c0d6557e815571e6 (diff)
git: show git short ref hash on SystemInfo(first screen) and FirmwareValidation screen alongside other information
Diffstat (limited to 'src/displayapp/screens/FirmwareValidation.cpp')
-rw-r--r--src/displayapp/screens/FirmwareValidation.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/displayapp/screens/FirmwareValidation.cpp b/src/displayapp/screens/FirmwareValidation.cpp
index 873a22f..ad37a3d 100644
--- a/src/displayapp/screens/FirmwareValidation.cpp
+++ b/src/displayapp/screens/FirmwareValidation.cpp
@@ -27,6 +27,17 @@ FirmwareValidation::FirmwareValidation(Pinetime::Applications::DisplayApp* app,
sprintf(version, "%ld.%ld.%ld", Version::Major(), Version::Minor(), Version::Patch());
lv_label_set_text(labelVersionValue, version);
+ labelShortRefInfo = lv_label_create(lv_scr_act(), nullptr);
+ lv_obj_align(labelShortRefInfo, nullptr, LV_ALIGN_IN_TOP_LEFT, 0, 25);
+ lv_label_set_text(labelShortRefInfo, "ShortRef : ");
+ lv_label_set_align(labelShortRefInfo, LV_LABEL_ALIGN_LEFT);
+
+ labelShortRefValue = lv_label_create(lv_scr_act(), nullptr);
+ lv_obj_align(labelShortRefValue, labelShortRefInfo, LV_ALIGN_OUT_RIGHT_MID, 0, 0);
+ lv_label_set_recolor(labelShortRefValue, true);
+ sprintf(shortref, "%s", Version::GitCommitHash());
+ lv_label_set_text(labelShortRefValue, shortref);
+
labelIsValidated = lv_label_create(lv_scr_act(), nullptr);
lv_obj_align(labelIsValidated, nullptr, LV_ALIGN_IN_TOP_LEFT, 0, 50);
lv_label_set_recolor(labelIsValidated, true);