Fixed race condition. Because the (milli)secondCounter is being updated in ISR as...
authorJ. Hendrix <gitweb@localhost>
Wed, 12 Mar 2014 19:14:46 +0000 (20:14 +0100)
committerJ. Hendrix <gitweb@localhost>
Wed, 12 Mar 2014 19:14:46 +0000 (20:14 +0100)
commit7ca1c0416ede99b5df7105ab6428a14fd6706077
treead47dd37cd0d749c40c6c3f31f323d7c61d10bff
parente388e3a3b67c9707f7fb0c35e2eff893208ea3c2
Fixed race condition. Because the (milli)secondCounter is being updated in ISR as a multi-byte variable, it was possible that it was being changed while being read from memory. Disabling interrupts for a brief moment fixed that.
millisecondInterrupt.ino