hugo-alves / arduino-pinchangeint

Automatically exported from code.google.com/p/arduino-pinchangeint
0 stars 0 forks source link

Should PCintPort::curr be volatile? #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

PCintPort::curr is modified in the ISRs.
Should it be volatile?

ISR(PCINT0_vect) {
    PCintPort::curr = portB.portInputReg; // version 1.6
    portB.PCint();
}

Original issue reported on code.google.com by cappy2...@gmail.com on 14 Jun 2012 at 12:50

GoogleCodeExporter commented 8 years ago
Good catch.  I have made the change for 1.73beta release.  Thanks.

Original comment by mschw...@gmail.com on 23 Jun 2012 at 10:34

GoogleCodeExporter commented 8 years ago
This was actually for 1.81beta.  ...There is no 1.73beta.  At any rate, I'll 
close this one.

Original comment by m...@schwager.com on 28 Jun 2012 at 5:12

GoogleCodeExporter commented 8 years ago
Great- thanks!

Original comment by cappy2...@gmail.com on 28 Jun 2012 at 7:11