mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 07:26:38 +02:00
fix #26 ticker / interval in app.cpp
This commit is contained in:
parent
3c2a896035
commit
f2e7105cb3
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue