mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-04 15:24:12 +01:00
a9735bf91f
Previously, it could happen that SPI::beginTransaction was interrupted by an ISR, while it is changing the SPI_AVR_EIMSK register or interruptSave variable (it seems that there is a small window after changing SPI_AVR_EIMSK where an interrupt might still occur). If this happens, interruptSave is overwritten with an invalid value, permanently disabling the pin interrupts. To prevent this, disable interrupts globally while changing these values. |
||
---|---|---|
.. | ||
EEPROM | ||
SoftwareSerial | ||
SPI | ||
Wire |