Update interrupt_detection.cpp