NeoHWSerial
NeoHWSerial copied to clipboard
[Question] Why you disable global interrupts?
I have a question about why you disable the interrupts here: https://github.com/SlashDevin/NeoHWSerial/blob/master/1.6.5r2/NeoHWSerial.cpp#L214
void NeoHWSerial::attachInterrupt( isr_t fn )
{
uint8_t oldSREG = SREG;
cli();
_isr = fn;
SREG = oldSREG;
}