code stopps after using a function

Serial.print in interrupt context?

"section" should be qualified "volatile".

Please, please, please use code tags when posting code.