kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
Small fixes to make it work with upstream version
rodzic
dd3d428fc8
commit
9b9cd8720b
|
@ -1035,7 +1035,7 @@ void SetupAsyncServer() {
|
||||||
});
|
});
|
||||||
|
|
||||||
server.on("/live.kml", HTTP_GET, [](AsyncWebServerRequest * request) {
|
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) {
|
server.on("/dynamic.kml", HTTP_GET, [](AsyncWebServerRequest * request) {
|
||||||
|
|
|
@ -239,7 +239,6 @@ public:
|
||||||
// moved to heap, saving space in .bss
|
// moved to heap, saving space in .bss
|
||||||
//SondeInfo sondeList[MAXSONDE+1];
|
//SondeInfo sondeList[MAXSONDE+1];
|
||||||
SondeInfo *sondeList;
|
SondeInfo *sondeList;
|
||||||
char myIP[17]; // 17 - to fit full IPv4 IP + null byte
|
|
||||||
|
|
||||||
Sonde();
|
Sonde();
|
||||||
void defaultConfig();
|
void defaultConfig();
|
||||||
|
|
Ładowanie…
Reference in New Issue