detachInterrupt() is missing the INT2 case, needed for chips such as the atmega644p. Here's a patch that adds the necessary code when INT2 is defined: > [extrapatch-hardware-arduino-cores-arduino-WInterrupts.c](https://gist.github.com/4400788)