mirror of https://github.com/arendst/Tasmota.git
Merge pull request #8818 from gemu2015/scripter-fix
fix scripter USE_SCRIPT_GLOBVARS without USE_DEVICE_GROUPS
This commit is contained in:
commit
3d95c6e193
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue