@@ -38,7 +38,8 @@ SystemInfo::SystemInfo(Pinetime::Applications::DisplayApp* app,
3838 const Pinetime::Controllers::Ble& bleController,
3939 const Pinetime::Drivers::Watchdog& watchdog,
4040 Pinetime::Controllers::MotionController& motionController,
41- const Pinetime::Drivers::Cst816S& touchPanel)
41+ const Pinetime::Drivers::Cst816S& touchPanel,
42+ const Pinetime::Drivers::SpiNorFlash& spiNorFlash)
4243 : app {app},
4344 dateTimeController {dateTimeController},
4445 batteryController {batteryController},
@@ -47,6 +48,7 @@ SystemInfo::SystemInfo(Pinetime::Applications::DisplayApp* app,
4748 watchdog {watchdog},
4849 motionController {motionController},
4950 touchPanel {touchPanel},
51+ spiNorFlash {spiNorFlash},
5052 screens {app,
5153 0 ,
5254 {[this ]() -> std::unique_ptr<Screen> {
@@ -186,10 +188,12 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
186188 lv_obj_t * label = lv_label_create (lv_scr_act (), nullptr );
187189 lv_label_set_recolor (label, true );
188190 const auto & bleAddr = bleController.Address ();
191+ auto spiFlashId = spiNorFlash.GetIdentification ();
189192 lv_label_set_text_fmt (label,
190193 " #808080 BLE MAC#\n "
191- " %02x:%02x:%02x:%02x:%02x:%02x"
194+ " %02x:%02x:%02x:%02x:%02x:%02x\n "
192195 " \n "
196+ " #808080 SPI Flash# %02x-%02x-%02x\n "
193197 " \n "
194198 " #808080 Memory heap#\n "
195199 " #808080 Free# %d\n "
@@ -202,6 +206,9 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
202206 bleAddr[2 ],
203207 bleAddr[1 ],
204208 bleAddr[0 ],
209+ spiFlashId.manufacturer ,
210+ spiFlashId.type ,
211+ spiFlashId.density ,
205212 xPortGetFreeHeapSize (),
206213 xPortGetMinimumEverFreeHeapSize (),
207214 mallocFailedCount,
0 commit comments