mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
Update WiFiManager.cpp (#1443)
Avoid constructing two String objects and adding them together. Just concatenate c-strings.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user