This commit is contained in:
e2002
2022-04-13 13:01:02 +03:00
parent 51f85109c9
commit 23a02da201
9 changed files with 31 additions and 14 deletions

View File

@@ -231,7 +231,13 @@ void Config::fillPlMenu(char plmenu[][40], int from, byte count) {
}
while (playlist.available()) {
if (parseCSV(playlist.readStringUntil('\n').c_str(), sName, sUrl, sOvol)) {
#ifdef PL_WITH_NUMBERS
char buf[BUFLEN];
sprintf(buf, "%d %s", (int)(from+c), sName);
strlcpy(plmenu[c], buf, 39);
#else
strlcpy(plmenu[c], sName, 39);
#endif
c++;
}
if (c >= count) break;