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

View File

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