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.
This commit is contained in:
parent
318a243df1
commit
eda96ffadc
17 changed files with 32 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue