mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +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(",\"COUNTER\":{"));
|
||||||
}
|
}
|
||||||
ResponseAppend_P(PSTR("%s\"C%d\":%s"), (header)?",":"", i +1, 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;
|
header = true;
|
||||||
#ifdef USE_DOMOTICZ
|
#ifdef USE_DOMOTICZ
|
||||||
if ((0 == tele_period) && (1 == dsxflg)) {
|
if ((0 == tele_period) && (1 == dsxflg)) {
|
||||||
@ -160,6 +157,9 @@ void CounterShow(bool json)
|
|||||||
dsxflg++;
|
dsxflg++;
|
||||||
}
|
}
|
||||||
#endif // USE_DOMOTICZ
|
#endif // USE_DOMOTICZ
|
||||||
|
if ((0 == tele_period ) && (Settings.flag3.counter_reset_on_tele)) {
|
||||||
|
RtcSettings.pulse_counter[i] = 0;
|
||||||
|
}
|
||||||
#ifdef USE_WEBSERVER
|
#ifdef USE_WEBSERVER
|
||||||
} else {
|
} else {
|
||||||
WSContentSend_PD(PSTR("{s}" D_COUNTER "%d{m}%s%s{e}"),
|
WSContentSend_PD(PSTR("{s}" D_COUNTER "%d{m}%s%s{e}"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user