update game
This commit is contained in:
@@ -63,22 +63,17 @@ void handleConfig(void)
|
||||
{
|
||||
}
|
||||
|
||||
String getConfigSong(String uid)
|
||||
void getConfigSong(const char* uid, const char* filename)
|
||||
{
|
||||
JsonArray array = tagDoc["tags"].as<JsonArray>();
|
||||
|
||||
const char* filename = "";
|
||||
|
||||
for (JsonVariant v : array)
|
||||
{
|
||||
const char *taguid = v["TagUID"];
|
||||
if (!strcmp(uid.c_str(), taguid))
|
||||
if (!strcmp(uid, taguid))
|
||||
{
|
||||
filename = v["audiofile"];
|
||||
String retval(filename);
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
log_e("taguid %s not found",uid );
|
||||
return "";
|
||||
}
|
||||
Reference in New Issue
Block a user