Your reset code runs straight into your ISR that will return to where when that happens? Your Loop is not going to be reached/executed except by some improbable luck. Move the ISR out of your main code block.
↧