Browse Source

fix #26 ticker / interval in app.cpp

pull/37/head
lumapu 3 years ago
parent
commit
f2e7105cb3
  1. 4
      tools/esp8266/app.cpp
  2. 2
      tools/esp8266/defines.h

4
tools/esp8266/app.cpp

@ -178,7 +178,7 @@ void app::loop(void) {
if(mMqttActive) {
mMqtt.loop();
if(++mMqttTicker >= mMqttInterval) {
mMqttInterval = 0;
mMqttTicker = 0;
mMqtt.isConnected(true);
char topic[30], val[10];
for(uint8_t id = 0; id < mSys->getNumInverters(); id++) {
@ -199,7 +199,7 @@ void app::loop(void) {
if(mSerialValues) {
if(++mSerialTicker >= mSerialInterval) {
mSerialInterval = 0;
mSerialTicker = 0;
char topic[30], val[10];
for(uint8_t id = 0; id < mSys->getNumInverters(); id++) {
Inverter<> *iv = mSys->getInverterByPos(id);

2
tools/esp8266/defines.h

@ -16,7 +16,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 3
#define VERSION_PATCH 8
#define VERSION_PATCH 9
//-------------------------------------

Loading…
Cancel
Save