TheThingsNetwork / arduino-node-lib

Arduino Library for The Things Node
MIT License
22 stars 26 forks source link

The Things Node button release does not provide time pressed #9

Closed pe1mew closed 6 years ago

pe1mew commented 6 years ago

The function onButtonRelease() is not delivering the time the button is pressed. it is always 0.

johanstokking commented 6 years ago

Thanks for reporting. I'm not seeing any obvious errors in the code. You do get the button press callback, right?

Is this behavior consistent?

pe1mew commented 6 years ago

No, I do not get the button press call back, but: after i pressed the button I do get the button release call back. when I release I get no call back

hallard commented 6 years ago

@johanstokking IRQ management on this type of devices are sometimes tricky, anyway I think I fixed the issue while trying low power mode

Just let me know if it just works

hallard commented 6 years ago

Should also be fixed in #15