aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-02-23 22:20:22 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-02-24 17:41:41 +0200
commit76f07de64b397bab011f2a4a2b44fd741beee458 (patch)
tree0b31f0a2427591a3b2cc8c2d97f6145923ae53f4 /src/displayapp/screens
parent1c4b97382a97a8d2222b3062e12d41aa24d4686f (diff)
displayapp: Make Cst816S references const
Diffstat (limited to 'src/displayapp/screens')
-rw-r--r--src/displayapp/screens/SystemInfo.cpp2
-rw-r--r--src/displayapp/screens/SystemInfo.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/displayapp/screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp
index 84fec66d..22504fa0 100644
--- a/src/displayapp/screens/SystemInfo.cpp
+++ b/src/displayapp/screens/SystemInfo.cpp
@@ -37,7 +37,7 @@ SystemInfo::SystemInfo(Pinetime::Applications::DisplayApp* app,
Pinetime::Controllers::Ble& bleController,
Pinetime::Drivers::WatchdogView& watchdog,
Pinetime::Controllers::MotionController& motionController,
- Pinetime::Drivers::Cst816S& touchPanel)
+ const Pinetime::Drivers::Cst816S& touchPanel)
: Screen(app),
dateTimeController {dateTimeController},
batteryController {batteryController},
diff --git a/src/displayapp/screens/SystemInfo.h b/src/displayapp/screens/SystemInfo.h
index 09b0fc46..d6629f01 100644
--- a/src/displayapp/screens/SystemInfo.h
+++ b/src/displayapp/screens/SystemInfo.h
@@ -29,7 +29,7 @@ namespace Pinetime {
Pinetime::Controllers::Ble& bleController,
Pinetime::Drivers::WatchdogView& watchdog,
Pinetime::Controllers::MotionController& motionController,
- Pinetime::Drivers::Cst816S& touchPanel);
+ const Pinetime::Drivers::Cst816S& touchPanel);
~SystemInfo() override;
bool OnTouchEvent(TouchEvents event) override;
@@ -40,7 +40,7 @@ namespace Pinetime {
Pinetime::Controllers::Ble& bleController;
Pinetime::Drivers::WatchdogView& watchdog;
Pinetime::Controllers::MotionController& motionController;
- Pinetime::Drivers::Cst816S& touchPanel;
+ const Pinetime::Drivers::Cst816S& touchPanel;
ScreenList<5> screens;