File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugwise_usb/nodes/helpers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def collected_pulses(
194194 if reset :
195195 pulses = delta_cons_pulses
196196 self ._prev_pulses_consumption = 0
197- if self ._pulsecounter_reset :
197+ if self ._pulsecounter_reset : # _pulsecounter_reset takes priority over a log_interval-rollover
198198 pulses = self ._pulses_consumption + self ._prev_pulses_consumption
199199 self ._prev_pulses_consumption = pulses
200200
@@ -206,7 +206,7 @@ def collected_pulses(
206206 if reset :
207207 pulses = delta_prod_pulses
208208 self ._prev_pulses_production = 0
209- if self ._pulsecounter_reset :
209+ if self ._pulsecounter_reset : # _pulsecounter_reset takes priority over a log_interval-rollover
210210 pulses = self ._prev_pulses_production + self ._prev_pulses_production
211211 self ._prev_pulses_production = pulses
212212
You can’t perform that action at this time.
0 commit comments