Skip to content

Commit 460a145

Browse files
committed
Add missing IP for STA when using MKS TFT
1 parent 32202cd commit 460a145

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

esp3d/esp3d.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ void Esp3D::begin(uint16_t startdelayms, uint16_t recoverydelayms)
216216
if (!wifi_config.Enable_servers() ) {
217217
ESPCOM::println (F ("Error enabling servers"), PRINTER_PIPE);
218218
}
219+
if (WiFi.getMode() == WIFI_STA) {
220+
String currentIP = WiFi.localIP().toString();
221+
ESPCOM::println (currentIP.c_str(), PRINTER_PIPE);
222+
}
223+
219224
/*#ifdef ARDUINO_ARCH_ESP8266
220225
if (rtc_info->reason == REASON_WDT_RST ||
221226

0 commit comments

Comments
 (0)