Don't clear ENS count in cumulative mode

This commit is contained in:
Klaus K Wilting 2020-10-09 19:56:29 +02:00
parent 56521fe9fb
commit e3858eceef

View File

@ -154,7 +154,8 @@ void sendData() {
payload.addSensor(sensor_read(1)); payload.addSensor(sensor_read(1));
SendPayload(SENSOR1PORT, prio_normal); SendPayload(SENSOR1PORT, prio_normal);
#if (COUNT_ENS) #if (COUNT_ENS)
cwa_clear(); if (cfg.countermode != 1)
cwa_clear();
#endif #endif
break; break;
#endif #endif