Update WiFiManager.cpp (#1443)

Avoid constructing two String objects and adding them together. Just concatenate c-strings.
This commit is contained in:
45gfg9
2022-06-28 13:14:06 -05:00
committed by GitHub
parent 65fec94317
commit 01bd8a398b
+1 -1
View File
@@ -2209,7 +2209,7 @@ String WiFiManager::getInfoData(String id){
}
else if(id==F("aboutdate")){
p = FPSTR(HTTP_INFO_aboutdate);
p.replace(FPSTR(T_1),String(__DATE__) + " " + String(__TIME__));
p.replace(FPSTR(T_1),String(__DATE__ " " __TIME__));
}
return p;
}