From a6cd3679eb1219865a215d0600c9703b198f9157 Mon Sep 17 00:00:00 2001 From: apilat Date: Thu, 30 Jun 2022 15:52:57 +0100 Subject: Only inhibit sleep if motion notifications are enabled, not just Bluetooth --- src/components/motion/MotionController.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/motion') diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h index 0aa7823e..b2e7e7fe 100644 --- a/src/components/motion/MotionController.h +++ b/src/components/motion/MotionController.h @@ -62,6 +62,10 @@ namespace Pinetime { this->service = service; } + Pinetime::Controllers::MotionService* GetService() const { + return service; + } + private: uint32_t nbSteps = 0; uint32_t currentTripSteps = 0; -- cgit v1.2.3-70-g09d2