Interrupt handling without "attachInterrupt" causes reset