diff --git a/lighthub/item.cpp b/lighthub/item.cpp index 548f80e..3c7ec85 100644 --- a/lighthub/item.cpp +++ b/lighthub/item.cpp @@ -23,6 +23,7 @@ e-mail anklimov@gmail.com #include "aJSON.h" #include "utils.h" #include "textconst.h" +#include "main.h" #ifdef _dmxout #include "dmx.h" @@ -47,6 +48,7 @@ extern aJsonObject *pollingItem; extern PubSubClient mqttClient; extern int8_t ethernetIdleCount; extern int8_t configLocked; +extern lan_status lanStatus; static unsigned long lastctrl = 0; static aJsonObject *lastobj = NULL; @@ -1702,7 +1704,7 @@ switch (cause) void Item::sendDelayedStatus() { long int flags = getFlag(SEND_COMMAND | SEND_PARAMETERS); // debugSerial<name<