When chaging to another track, play it from the beginning.

This commit is contained in:
Fabian Schlenz 2019-11-17 14:25:47 +01:00
parent fff9d9bc61
commit b5ec78ab41
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ bool Playlist::track_next() {
bool Playlist::set_track(uint8_t track) {
if (track < _files.size()) {
_current_track = track;
_position = 0;
return true;
}
return false;