I guess there are many errors.
But to name one that directly stands out:
must beThe interrupt handler is changing the variable, it must be volatile.
But to name one that directly stands out:
Code:
bool interrupt_flag = false;Code:
volatile bool interrupt_flag = false;Statistics: Posted by terencehill — Tue Dec 26, 2023 11:20 pm