mirror of
https://github.com/xfjx/TonUINO.git
synced 2025-08-30 02:09:51 +02:00
Random?
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user