Skip to content

Commit

Permalink
v0.9.242
Browse files Browse the repository at this point in the history
  • Loading branch information
e2002 committed Jun 3, 2023
1 parent 942bc1c commit 2f71c18
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ Work is in progress...

---
## Version history
#### v0.9.242
- fixed a hang bug when scrolling through an SD playlist with an encoder in configurations with VS1053B
- fixed a hang bug when quickly switching SD / WEB modes from the WEB interface in configurations with VS1053B
- fixes in the logic of work

#### v0.9.236
- fix compilation error 'class NetServer' has no member named 'resetQueue'

Expand Down
4 changes: 3 additions & 1 deletion yoRadio/src/audioVS1053/audioVS1053Ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ void Audio::stopSong()
{
uint16_t modereg; // Read from mode register
int i; // Loop control

if(audiofile){
cardLock(true);audiofile.close();cardLock(false);
}
m_f_localfile = false;
m_f_webfile = false;
m_f_webstream = false;
Expand Down
18 changes: 11 additions & 7 deletions yoRadio/src/core/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ void Config::init() {
ssidsCount = 0;
_cardStatus = CS_NONE;
_SDplaylistFS = getMode()==PM_SDCARD?&SD:(true?&SPIFFS:_SDplaylistFS);
if(SDC_CS!=255) randomSeed(analogRead(SDC_CS));
//if(SDC_CS!=255) randomSeed(analogRead(SDC_CS));
randomSeed(esp_random());
backupSDStation = 0;
//checkSD();
_bootDone=false;
Expand Down Expand Up @@ -162,6 +163,7 @@ void Config::changeMode(int newmode){
delay(10);
delay(50);
}
if(getMode()==PM_WEB) player.setResumeFilePos(0);
initPlaylistMode();
if (store.smartstart == 1) player.sendCommand({PR_PLAY, store.lastStation});
//else
Expand Down Expand Up @@ -661,23 +663,25 @@ uint8_t Config::fillPlMenu(int from, uint8_t count, bool fromNextion) {
playlist.seek(pos, SeekSet);
sdog.giveMutex();
}
while (playlist.available()) {
bool pla = true;
while (pla) {
sdog.takeMutex();
pla = playlist.available();
String stationName = playlist.readStringUntil('\n');
sdog.giveMutex();
stationName = stationName.substring(0, stationName.indexOf('\t'));
if(config.store.numplaylist) stationName = String(from+c)+" "+stationName;
if(config.store.numplaylist && stationName.length()>0) stationName = String(from+c)+" "+stationName;
if(!fromNextion) display.printPLitem(c, stationName.c_str());
#ifdef USE_NEXTION
if(fromNextion) nextion.printPLitem(c, stationName.c_str());
#endif
#ifdef USE_NEXTION
if(fromNextion) nextion.printPLitem(c, stationName.c_str());
#endif
c++;
if (c >= count) break;
}
break;
}
return c;
sdog.takeMutex();playlist.close();sdog.giveMutex();
return c;
}

bool Config::parseCSV(const char* line, char* name, char* url, int &ovol) {
Expand Down
2 changes: 1 addition & 1 deletion yoRadio/src/core/options.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef options_h
#define options_h

#define YOVERSION "0.9.236"
#define YOVERSION "0.9.242"

/*******************************************************
DO NOT EDIT THIS FILE.
Expand Down
1 change: 1 addition & 0 deletions yoRadio/src/core/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ QueueHandle_t playerQueue;
void Player::init() {
Serial.print("##[BOOT]#\tplayer.init\t");
playerQueue=NULL;
_resumeFilePos = 0;
playerQueue = xQueueCreate( 5, sizeof( playerRequestParams_t ) );
setOutputPins(false);
delay(50);
Expand Down

0 comments on commit 2f71c18

Please sign in to comment.