sleemanj / optiboot

Small and Fast Bootloader for Arduino and other Atmel AVR chips
66 stars 13 forks source link

AttinyX4 pins_arduino.h problem with digitalPinToPCICR( #28

Open jcfoster opened 1 year ago

jcfoster commented 1 year ago

on line 208 in pins_arduino.h the line reads as:

define digitalPinToPCICR(p) ((p) <= 11) ? (&GIMSK) : ((uint8_t *)NULL))

Needs three open parentheses in the replacement code should read:

define digitalPinToPCICR(p) (((p) <= 11) ? (&GIMSK) : ((uint8_t *)NULL))

sleemanj commented 1 year ago

Thanks, I have committed that fix to the main repo. I should do a release at some point.