Make functions const again

This commit is contained in:
Riku Isokoski 2022-04-24 12:38:09 +03:00
parent 36cb7c82f3
commit b6807ee3ca
2 changed files with 2 additions and 2 deletions

View file

@ -199,7 +199,7 @@ float Pinetime::Controllers::MusicService::getPlaybackSpeed() const {
return playbackSpeed;
}
int Pinetime::Controllers::MusicService::getProgress() {
int Pinetime::Controllers::MusicService::getProgress() const {
if (isPlaying()) {
return trackProgress + static_cast<int>((static_cast<float>(xTaskGetTickCount() - trackProgressUpdateTime) / 1024.0f) * getPlaybackSpeed());
}

View file

@ -47,7 +47,7 @@ namespace Pinetime {
std::string getAlbum() const;
int getProgress();
int getProgress() const;
int getTrackLength() const;