Optimization: Timer reset interrup flag in main.c