ovol bug
This commit is contained in:
@@ -207,7 +207,7 @@ void Config::fillPlMenu(char plmenu[][40], int from, byte count) {
|
|||||||
bool Config::parseCSV(const char* line, char* name, char* url, int &ovol) {
|
bool Config::parseCSV(const char* line, char* name, char* url, int &ovol) {
|
||||||
char *tmpe;
|
char *tmpe;
|
||||||
const char* cursor = line;
|
const char* cursor = line;
|
||||||
char buf[4];
|
char buf[5];
|
||||||
tmpe=strstr(cursor, "\t");
|
tmpe=strstr(cursor, "\t");
|
||||||
if(tmpe==NULL) return false;
|
if(tmpe==NULL) return false;
|
||||||
strlcpy(name, cursor, tmpe-cursor+1);
|
strlcpy(name, cursor, tmpe-cursor+1);
|
||||||
@@ -219,7 +219,7 @@ bool Config::parseCSV(const char* line, char* name, char* url, int &ovol) {
|
|||||||
if(strlen(url)==0) return false;
|
if(strlen(url)==0) return false;
|
||||||
cursor=tmpe+1;
|
cursor=tmpe+1;
|
||||||
if (strlen(cursor) == 0) return false;
|
if (strlen(cursor) == 0) return false;
|
||||||
strlcpy(buf, cursor, 3);
|
strlcpy(buf, cursor, 4);
|
||||||
ovol = atoi(buf);
|
ovol = atoi(buf);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define VERSION "0.4.182"
|
#define VERSION "0.4.183"
|
||||||
|
|
||||||
/* DISPLAY MODEL
|
/* DISPLAY MODEL
|
||||||
* 0 - DUMMY
|
* 0 - DUMMY
|
||||||
|
|||||||
Reference in New Issue
Block a user