fix build of serialap module (#475)

wifimanager need to be used to read local IP address.

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>
Co-authored-by: Frank Kunz <mailinglists@kunz-im-inter.net>
This commit is contained in:
Frank Kunz
2025-06-14 17:45:45 +02:00
committed by GitHub
parent 7226793e41
commit e0df4490b3

View File

@@ -14,6 +14,7 @@
#include "storage.h"
#include "web.h"
#include "zbs_interface.h"
#include "wifimanager.h"
#define LOG(format, ...) printf(format, ##__VA_ARGS__)
@@ -802,7 +803,7 @@ void checkWaitPowerCycle() {
#endif
}
void segmentedShowIp() {
IPAddress IP = WiFi.localIP();
IPAddress IP = wm.localIP();
char temp[12];
vTaskDelay(2000 / portTICK_PERIOD_MS);
sendAPSegmentedData(apInfo.mac, (String) "IP Addr", 0x0200, true, true);