From 460a145a91588f7451fe7016b8db6c0a67758b4c Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Tue, 2 Jan 2024 19:08:34 +0800 Subject: [PATCH] Add missing IP for STA when using MKS TFT --- esp3d/esp3d.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/esp3d/esp3d.cpp b/esp3d/esp3d.cpp index eea98e3c..7fc98d73 100644 --- a/esp3d/esp3d.cpp +++ b/esp3d/esp3d.cpp @@ -216,6 +216,11 @@ void Esp3D::begin(uint16_t startdelayms, uint16_t recoverydelayms) if (!wifi_config.Enable_servers() ) { ESPCOM::println (F ("Error enabling servers"), PRINTER_PIPE); } + if (WiFi.getMode() == WIFI_STA) { + String currentIP = WiFi.localIP().toString(); + ESPCOM::println (currentIP.c_str(), PRINTER_PIPE); + } + /*#ifdef ARDUINO_ARCH_ESP8266 if (rtc_info->reason == REASON_WDT_RST ||