dkern / node-red-counter

A Node-RED node to increment a count.
Other
8 stars 9 forks source link

msg.reset doesn't work as supposed to #10

Open ghost opened 5 years ago

ghost commented 5 years ago

msg.reset doesn't reset the counter to it's initial count and instead keeps on counting, nor does it reset to 0 when the msg.reset value is the number 0. Not sure if that's a bug but it can be verified with the examples in the repository.

node-red-counter 0.1.5 node-red 020.2 node.js 8.15.0

dezral commented 5 years ago

i have the same problem.. i have to delete the counter, and make a new..

dkern commented 5 years ago

Well, it seems that using msg.reset = 0 is buggy and don't reset anything. If the default value is 0 and you want to reset, just use msg.reset = true, this will reset the value to zero then. Anything above zero can be set with msg.reset = 123.

I will fix that bug when i have time. ;)

ondrackajan commented 2 years ago

Any chance you will fix this bug? :)

maxi1134 commented 10 months ago

This bug is still present. Any update? :)