noInterrupts();
doLargeTask = false;
interrupts();
It is not necessary to disable interrupts to perform an atomic operation.
noInterrupts();
doLargeTask = false;
interrupts();
It is not necessary to disable interrupts to perform an atomic operation.