Skip to content

Commit

Permalink
Added boundary for jump back in special play modes
Browse files Browse the repository at this point in the history
Added boundary for jump back in special play modes, as mentioned by stockf in xfjx#37
xfjx#37
  • Loading branch information
pit-nrw committed Jul 31, 2019
1 parent 1d138ad commit 014b8b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tonuino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@ void playFolder() {
Serial.print(F(" bis "));
Serial.println(myFolder->special2);
numTracksInFolder = myFolder->special2;
firstTrack = myFolder->special; // set boundary for jump back mentioned by stockf in #37
currentTrack = random(myFolder->special, numTracksInFolder + 1);
Serial.println(currentTrack);
mp3.playFolderTrack(myFolder->folder, currentTrack);
Expand All @@ -1001,6 +1002,7 @@ void playFolder() {
Serial.print(myFolder->special);
Serial.print(F(" bis "));
Serial.println(myFolder->special2);
firstTrack = myFolder->special; // set boundary for jump back mentioned by stockf in #37
numTracksInFolder = myFolder->special2;
currentTrack = myFolder->special;
mp3.playFolderTrack(myFolder->folder, currentTrack);
Expand Down

0 comments on commit 014b8b9

Please sign in to comment.