We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3b5da0 + 52eb94c commit 1c3c3c8Copy full SHA for 1c3c3c8
1 file changed
src/displayapp/screens/Metronome.cpp
@@ -78,7 +78,7 @@ Metronome::~Metronome() {
78
79
void Metronome::Refresh() {
80
if (metronomeStarted) {
81
- if (xTaskGetTickCount() - startTime > 60 * configTICK_RATE_HZ / bpm) {
+ if (xTaskGetTickCount() - startTime > 60u * configTICK_RATE_HZ / static_cast<uint16_t>(bpm)) {
82
startTime += 60 * configTICK_RATE_HZ / bpm;
83
counter--;
84
if (counter == 0) {
0 commit comments