From 463355281a21cfe380aef2068cf765a867b6ad01 Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Mon, 27 Jun 2022 08:34:01 +0200 Subject: Display target build variant in system info screen --- src/displayapp/screens/SystemInfo.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/displayapp/screens') diff --git a/src/displayapp/screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp index e3983d7c..7e1ae2f8 100644 --- a/src/displayapp/screens/SystemInfo.cpp +++ b/src/displayapp/screens/SystemInfo.cpp @@ -136,6 +136,10 @@ std::unique_ptr SystemInfo::CreateScreen2() { uptimeSeconds = uptimeSeconds % secondsInAMinute; // TODO handle more than 100 days of uptime +#ifndef TARGET_DEVICE_NAME + #define TARGET_DEVICE_NAME "UNKNOWN" +#endif + lv_obj_t* label = lv_label_create(lv_scr_act(), nullptr); lv_label_set_recolor(label, true); lv_label_set_text_fmt(label, @@ -146,7 +150,8 @@ std::unique_ptr SystemInfo::CreateScreen2() { "#808080 Backlight# %s\n" "#808080 Last reset# %s\n" "#808080 Accel.# %s\n" - "#808080 Touch.# %x.%x.%x\n", + "#808080 Touch.# %x.%x.%x\n" + "#808080 Model# %s", dateTimeController.Day(), static_cast(dateTimeController.Month()), dateTimeController.Year(), @@ -164,7 +169,8 @@ std::unique_ptr SystemInfo::CreateScreen2() { ToString(motionController.DeviceType()), touchPanel.GetChipId(), touchPanel.GetVendorId(), - touchPanel.GetFwVersion()); + touchPanel.GetFwVersion(), + TARGET_DEVICE_NAME); lv_obj_align(label, lv_scr_act(), LV_ALIGN_CENTER, 0, 0); return std::make_unique(1, 5, app, label); } -- cgit v1.2.3