Skip to content

Commit 1c3c3c8

Browse files
committed
Merge branch 'develop' of github.com:JF002/Pinetime into develop
2 parents f3b5da0 + 52eb94c commit 1c3c3c8

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)