Fattoresaimon / ArduinoDuPPaLib

Libraries for DuPPa products on the Arduino IDE
GNU General Public License v3.0
42 stars 24 forks source link

Bug in autoconfigInterrupt() #10

Closed fmafma closed 4 years ago

fmafma commented 4 years ago

Hi!

The autoconfigInterrupt() method does not check for the onIncrement callback, and so does not set the according bit in the interrupt register.

This code should be added:

if (onIncrement != NULL) reg |= RINC;

Thanks,

Frédéric

Fattoresaimon commented 4 years ago

Fixed! Thank you!