Skip to content

Commit 52eb94c

Browse files
authored
Merge pull request #669 from NeroBurner/fix_unsigned_comparison_warning_metronome
Fix unsigned/signed comparison warning in Metronome.cpp
2 parents 5855906 + 63477fc commit 52eb94c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/displayapp/screens/Metronome.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Metronome::~Metronome() {
7878

7979
void Metronome::Refresh() {
8080
if (metronomeStarted) {
81-
if (xTaskGetTickCount() - startTime > 60 * configTICK_RATE_HZ / bpm) {
81+
if (xTaskGetTickCount() - startTime > 60u * configTICK_RATE_HZ / static_cast<uint16_t>(bpm)) {
8282
startTime += 60 * configTICK_RATE_HZ / bpm;
8383
counter--;
8484
if (counter == 0) {

0 commit comments

Comments
 (0)