Skip to content

Commit 4d1f59e

Browse files
committed
Merge branch 'display-variant' into p8b
2 parents 63700ad + 595f6af commit 4d1f59e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ add_definitions(-DMYNEWT_VAL_BLE_LL_RFMGMT_ENABLE_TIME=1500)
794794

795795
# Target hardware configuration options
796796
add_definitions(-DTARGET_DEVICE_${TARGET_DEVICE})
797+
add_definitions(-DTARGET_DEVICE_NAME="${TARGET_DEVICE}")
797798
if(TARGET_DEVICE STREQUAL "PINETIME")
798799
add_definitions(-DDRIVER_PINMAP_PINETIME)
799800
add_definitions(-DCLOCK_CONFIG_LF_SRC=1) # XTAL

src/displayapp/screens/SystemInfo.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
148148
"#808080 Backlight# %s\n"
149149
"#808080 Last reset# %s\n"
150150
"#808080 Accel.# %s\n"
151-
"#808080 Touch.# %x.%x.%x\n",
151+
"#808080 Touch.# %x.%x.%x\n"
152+
"#808080 Model# %s",
152153
dateTimeController.Day(),
153154
static_cast<uint8_t>(dateTimeController.Month()),
154155
dateTimeController.Year(),
@@ -166,7 +167,8 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
166167
ToString(motionController.DeviceType()),
167168
touchPanel.GetChipId(),
168169
touchPanel.GetVendorId(),
169-
touchPanel.GetFwVersion());
170+
touchPanel.GetFwVersion(),
171+
TARGET_DEVICE_NAME);
170172
lv_obj_align(label, lv_scr_act(), LV_ALIGN_CENTER, 0, 0);
171173
return std::make_unique<Screens::Label>(1, 5, app, label);
172174
}

0 commit comments

Comments
 (0)