CreatorDev / LetMeCreateIoT

LetMeCreate library for the PIC32MX clicker
BSD 3-Clause "New" or "Revised" License
5 stars 8 forks source link

gpio_monitor: Allow interrupt routine to call multiple callbacks #16

Closed ghost closed 7 years ago

ghost commented 7 years ago

The interrupt routine could only call one callback when executed, which means that if two events happened at the same time, the routine called only one callback and ignored the second one.

This commits ensures that whenever an event happens on a gpio, the corresponding callback gets called.

Signed-off-by: Francois Berder francois.berder@imgtec.com

mtusnio commented 7 years ago

Any testing was done with a motion click and such to check if it actually works?

ghost commented 7 years ago

I've just tried the motion example and LED 1 toggles as it should.