diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 64c5c5a..f568f65 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,5 +22,5 @@ repos: - id: cppcheck name: cppcheck 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 diff --git a/static_scheduling_with_event/bike_system.hpp b/static_scheduling_with_event/bike_system.hpp index 8254f22..c51de14 100644 --- a/static_scheduling_with_event/bike_system.hpp +++ b/static_scheduling_with_event/bike_system.hpp @@ -85,7 +85,7 @@ class BikeSystem { // data member that represents the device for manipulating the gear GearDevice _gearDevice; 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 // speed/time PedalDevice _pedalDevice;