diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index c9bfa9f..e57e4fb 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -1035,7 +1035,7 @@ void SetupAsyncServer() { }); server.on("/live.kml", HTTP_GET, [](AsyncWebServerRequest * request) { - request->send(200, "application/vnd.google-earth.kml+xml", createKMLLive(sonde.myIP)); + request->send(200, "application/vnd.google-earth.kml+xml", createKMLLive(sonde.ipaddr.c_str())); }); server.on("/dynamic.kml", HTTP_GET, [](AsyncWebServerRequest * request) { diff --git a/libraries/SondeLib/Sonde.h b/libraries/SondeLib/Sonde.h index be2fd4e..189df28 100644 --- a/libraries/SondeLib/Sonde.h +++ b/libraries/SondeLib/Sonde.h @@ -239,7 +239,6 @@ public: // moved to heap, saving space in .bss //SondeInfo sondeList[MAXSONDE+1]; SondeInfo *sondeList; - char myIP[17]; // 17 - to fit full IPv4 IP + null byte Sonde(); void defaultConfig();