1
0
mirror of https://github.com/xfjx/TonUINO.git synced 2025-08-30 02:09:51 +02:00
This commit is contained in:
Thorsten Voß
2019-02-06 19:01:16 +01:00
parent c32b597dee
commit a88bec1ef7

View File

@@ -456,7 +456,7 @@ void previousButton() {
void playFolder() { void playFolder() {
disablestandbyTimer(); disablestandbyTimer();
randomSeed(millis + random(1000)); randomSeed(millis() + random(1000));
knownCard = true; knownCard = true;
_lastTrackFinished = 0; _lastTrackFinished = 0;
numTracksInFolder = mp3.getFolderTrackCount(myFolder->folder); numTracksInFolder = mp3.getFolderTrackCount(myFolder->folder);
@@ -661,7 +661,7 @@ void loop() {
if (readCard(&myCard) == true) { if (readCard(&myCard) == true) {
// make random a little bit more "random" // make random a little bit more "random"
randomSeed(millis()); randomSeed(millis() + random(1000));
if (myCard.cookie == 322417479 && myFolder->folder != 0 && myFolder->mode != 0) { if (myCard.cookie == 322417479 && myFolder->folder != 0 && myFolder->mode != 0) {
playFolder(); playFolder();
} }