Skip to content

Commit 993b1ad

Browse files
authored
fix: not found getChipModel method for ESP8266 (#1503)
1 parent 696b920 commit 993b1ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WiFiManager.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,9 @@ String WiFiManager::getInfoData(String id){
20542054
String p;
20552055
if(id==F("esphead")){
20562056
p = FPSTR(HTTP_INFO_esphead);
2057-
p.replace(FPSTR(T_1),(String)ESP.getChipModel());
2057+
#ifdef ESP32
2058+
p.replace(FPSTR(T_1), (String)ESP.getChipModel());
2059+
#endif
20582060
}
20592061
else if(id==F("wifihead")){
20602062
p = FPSTR(HTTP_INFO_wifihead);

0 commit comments

Comments
 (0)