diff options
| author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2023-01-03 14:05:30 +0000 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2023-01-04 17:15:33 +0100 |
| commit | eda96ffadc824742bf937c58f5295c86389a6d5e (patch) | |
| tree | 1780b2fff3719f721c534cee192d28da945c9ff9 /src/components/motion/MotionController.cpp | |
| parent | 318a243df1ad844ed487b936eb7edde876fc5ef6 (diff) | |
Update clang-{format,tidy} to 14
Also add configuration options only available in 13 and 14.
Fixes warning about -fstack-usage in clang-tidy check.
Diffstat (limited to 'src/components/motion/MotionController.cpp')
| -rw-r--r-- | src/components/motion/MotionController.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp index d93d769b..8ba46814 100644 --- a/src/components/motion/MotionController.cpp +++ b/src/components/motion/MotionController.cpp @@ -61,6 +61,7 @@ bool MotionController::Should_ShakeWake(uint16_t thresh) { lastZForShake = z; return wake; } + int32_t MotionController::currentShakeSpeed() { return accumulatedspeed; } @@ -68,6 +69,7 @@ int32_t MotionController::currentShakeSpeed() { void MotionController::IsSensorOk(bool isOk) { isSensorOk = isOk; } + void MotionController::Init(Pinetime::Drivers::Bma421::DeviceTypes types) { switch (types) { case Drivers::Bma421::DeviceTypes::BMA421: @@ -81,6 +83,7 @@ void MotionController::Init(Pinetime::Drivers::Bma421::DeviceTypes types) { break; } } + void MotionController::SetService(Pinetime::Controllers::MotionService* service) { this->service = service; } |
