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; return playbackSpeed;
} }
int Pinetime::Controllers::MusicService::getProgress() { int Pinetime::Controllers::MusicService::getProgress() const {
if (isPlaying()) { if (isPlaying()) {
return trackProgress + static_cast<int>((static_cast<float>(xTaskGetTickCount() - trackProgressUpdateTime) / 1024.0f) * getPlaybackSpeed()); 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; std::string getAlbum() const;
int getProgress(); int getProgress() const;
int getTrackLength() const; int getTrackLength() const;