From 75b08441f72cea42177dd798d9cd16682c52bb8f Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Fri, 10 Jan 2020 15:21:33 +0300 Subject: [PATCH] SendStatus interim refactoring --- lighthub/item.cpp | 6 ++++-- lighthub/main.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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<