mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 14:57:16 +00:00
Update xsns_01_counter.ino
This commit is contained in:
parent
436cf830b9
commit
4a9271aced
@ -150,9 +150,6 @@ void CounterShow(bool json)
|
||||
ResponseAppend_P(PSTR(",\"COUNTER\":{"));
|
||||
}
|
||||
ResponseAppend_P(PSTR("%s\"C%d\":%s"), (header)?",":"", i +1, counter);
|
||||
if ((0 == tele_period ) && (Settings.flag3.counter_reset_on_tele)) {
|
||||
RtcSettings.pulse_counter[i] = 0;
|
||||
}
|
||||
header = true;
|
||||
#ifdef USE_DOMOTICZ
|
||||
if ((0 == tele_period) && (1 == dsxflg)) {
|
||||
@ -160,6 +157,9 @@ void CounterShow(bool json)
|
||||
dsxflg++;
|
||||
}
|
||||
#endif // USE_DOMOTICZ
|
||||
if ((0 == tele_period ) && (Settings.flag3.counter_reset_on_tele)) {
|
||||
RtcSettings.pulse_counter[i] = 0;
|
||||
}
|
||||
#ifdef USE_WEBSERVER
|
||||
} else {
|
||||
WSContentSend_PD(PSTR("{s}" D_COUNTER "%d{m}%s%s{e}"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user