diff options
| author | JF <jf@codingfield.com> | 2020-03-28 19:05:28 +0100 |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-03-28 19:05:28 +0100 |
| commit | baca0fc3e59e88420d6c7983ad133fe63c794ec0 (patch) | |
| tree | e817de0b040712bb95129520fcc51eae59ecc161 /src/DisplayApp/Screens/Tile.cpp | |
| parent | 68240704c7a60534342cfc0157564f11cf82d9d8 (diff) | |
Encapsulate Notification management in NotificationManager. It implement a static array of notifications to avoid dynamic allocation.
Diffstat (limited to 'src/DisplayApp/Screens/Tile.cpp')
| -rw-r--r-- | src/DisplayApp/Screens/Tile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DisplayApp/Screens/Tile.cpp b/src/DisplayApp/Screens/Tile.cpp index 7eb1018c..6c225c9d 100644 --- a/src/DisplayApp/Screens/Tile.cpp +++ b/src/DisplayApp/Screens/Tile.cpp @@ -123,7 +123,9 @@ void Tile::OnObjectEvent(lv_obj_t *obj, lv_event_t event, uint32_t buttonId) { tile->StartClockApp(); break; case 3: - modal->Show(); + char versionStr[20]; + sprintf(versionStr, "VERSION: %d.%d.%d", Version::Major(), Version::Minor(), Version::Patch()); + modal->Show(versionStr); break; case 4: tile->StartSysInfoApp(); |
