Any variable used in an ISR should be declared volatile, like: volatile int buttonPushCounterOn = 0;
"Any variable used in an ISR and shared with non-interrupt state code should be declared volatile, like: volatile int buttonPushCounterOn = 0;"
Any variable used in an ISR should be declared volatile, like: volatile int buttonPushCounterOn = 0;
"Any variable used in an ISR and shared with non-interrupt state code should be declared volatile, like: volatile int buttonPushCounterOn = 0;"