From bc1f91041cda8b2e69122e9e42e5379b3897a3b1 Mon Sep 17 00:00:00 2001 From: gemu2015 Date: Mon, 29 Jun 2020 10:48:24 +0200 Subject: [PATCH] fix scripter USE_SCRIPT_GLOBVARS without USE_DEVICE_GROUPS --- tasmota/xdrv_10_scripter.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasmota/xdrv_10_scripter.ino b/tasmota/xdrv_10_scripter.ino index fec64caa7..347428284 100755 --- a/tasmota/xdrv_10_scripter.ino +++ b/tasmota/xdrv_10_scripter.ino @@ -383,6 +383,14 @@ struct SCRIPT_MEM { #ifdef USE_SCRIPT_GLOBVARS IPAddress last_udp_ip; WiFiUDP Script_PortUdp; + +#ifndef USE_DEVICE_GROUPS +char * IPAddressToString(const IPAddress& ip_address) { + static char buffer[16]; + sprintf_P(buffer, PSTR("%u.%u.%u.%u"), ip_address[0], ip_address[1], ip_address[2], ip_address[3]); + return buffer; +} +#endif #endif int16_t last_findex;