FIX kMaxGearSize value static scheduling with event

This commit is contained in:
fastium 2025-01-06 23:07:46 +01:00
parent dfd94b647c
commit a183ad4858
2 changed files with 2 additions and 2 deletions

View File

@ -22,5 +22,5 @@ repos:
- id: cppcheck - id: cppcheck
name: cppcheck name: cppcheck
require_serial: true require_serial: true
entry: cppcheck --enable=all --suppress=missingInclude --suppress=missingIncludeSystem --suppress=unusedStructMember --inline-suppr -i mbed-os --std=c++14 --error-exitcode=1 entry: cppcheck --enable=all --suppress=missingInclude --suppress=missingIncludeSystem --inline-suppr -i mbed-os --std=c++14 --error-exitcode=1
language: system language: system

View File

@ -85,7 +85,7 @@ class BikeSystem {
// data member that represents the device for manipulating the gear // data member that represents the device for manipulating the gear
GearDevice _gearDevice; GearDevice _gearDevice;
uint8_t _currentGear = bike_computer::kMinGear; uint8_t _currentGear = bike_computer::kMinGear;
uint8_t _currentGearSize = bike_computer::kMinGearSize; uint8_t _currentGearSize = bike_computer::kMaxGearSize;
// data member that represents the device for manipulating the pedal rotation // data member that represents the device for manipulating the pedal rotation
// speed/time // speed/time
PedalDevice _pedalDevice; PedalDevice _pedalDevice;