Skip to content

Commit

Permalink
use camelCase for rollHysteresis constant
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufmte committed Jan 15, 2024
1 parent 8880acc commit 01b241b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/displayapp/screens/Dice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void Dice::Roll() {
if (openingRoll == false) {
motorController.RunForDuration(30);
NextColor();
currentRollHysteresis = ROLL_HYSTERESIS;
currentRollHysteresis = rollHysteresis;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/displayapp/screens/Dice.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace Pinetime {

bool openingRoll = true;
uint8_t currentRollHysteresis = 0;
static constexpr uint8_t ROLL_HYSTERESIS = 10;
static constexpr uint8_t rollHysteresis = 10;

Controllers::MotorController& motorController;
Controllers::MotionController& motionController;
Expand Down

0 comments on commit 01b241b

Please sign in to comment.