Don't clear ENS count in cumulative mode
This commit is contained in:
parent
56521fe9fb
commit
e3858eceef
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user