FIX cpplint errors

This commit is contained in:
fastium
2024-12-30 17:52:08 +01:00
parent 4c9a0e25a7
commit ca33d26769
7 changed files with 79 additions and 66 deletions

View File

@@ -38,17 +38,12 @@
namespace multi_tasking {
GearDevice::GearDevice() {
disco::Joystick::getInstance().setUpCallback(
callback(this, &GearDevice::onUp));
disco::Joystick::getInstance().setDownCallback(
callback(this, &GearDevice::onDown));
disco::Joystick::getInstance().setUpCallback(callback(this, &GearDevice::onUp));
disco::Joystick::getInstance().setDownCallback(callback(this, &GearDevice::onDown));
}
uint8_t GearDevice::getCurrentGear() {
return core_util_atomic_load_u8(&_currentGear);
}
uint8_t GearDevice::getCurrentGear() { return core_util_atomic_load_u8(&_currentGear); }
uint8_t GearDevice::getCurrentGearSize() const {
return bike_computer::kMaxGearSize - core_util_atomic_load_u8(&_currentGear);
@@ -66,4 +61,4 @@ void GearDevice::onDown() {
}
}
} // namespace static_scheduling
} // namespace multi_tasking