From 1c4b97382a97a8d2222b3062e12d41aa24d4686f Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Thu, 23 Feb 2023 22:16:44 +0200 Subject: displayapp: Make Battery class references const --- src/displayapp/screens/BatteryInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/displayapp/screens/BatteryInfo.h') diff --git a/src/displayapp/screens/BatteryInfo.h b/src/displayapp/screens/BatteryInfo.h index de34cdff..2c32cebb 100644 --- a/src/displayapp/screens/BatteryInfo.h +++ b/src/displayapp/screens/BatteryInfo.h @@ -14,13 +14,13 @@ namespace Pinetime { class BatteryInfo : public Screen { public: - BatteryInfo(DisplayApp* app, Pinetime::Controllers::Battery& batteryController); + BatteryInfo(DisplayApp* app, const Pinetime::Controllers::Battery& batteryController); ~BatteryInfo() override; void Refresh() override; private: - Pinetime::Controllers::Battery& batteryController; + const Pinetime::Controllers::Battery& batteryController; lv_obj_t* voltage; lv_obj_t* percent; -- cgit v1.2.3-70-g09d2