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 5855906 + 63477fc commit 52eb94cCopy full SHA for 52eb94c
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