Skip to content

Commit 0a320b9

Browse files
committed
Revert "Update interrupts to be masked when accessing flash (#1388)"
This reverts commit 6c37fee.
1 parent a4e78b4 commit 0a320b9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

cores/esp8266/Esp.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -466,15 +466,7 @@ bool EspClass::updateSketch(Stream& in, uint32_t size, bool restartOnFail, bool
466466
return true;
467467
}
468468

469-
// Interrupts which are masked by flash access routines
470-
static const int FLASH_INT_MASK =
471-
(1 << ETS_SLC_INUM) |
472-
(1 << ETS_SPI_INUM) |
473-
(1 << ETS_GPIO_INUM) |
474-
(1 << ETS_UART_INUM) |
475-
(1 << ETS_CCOMPARE0_INUM) |
476-
(1 << ETS_FRC_TIMER1_INUM);
477-
469+
static const int FLASH_INT_MASK = ((B10 << 8) | B00111010);
478470

479471
bool EspClass::flashEraseSector(uint32_t sector) {
480472
ets_isr_mask(FLASH_INT_MASK);

0 commit comments

Comments
 (0)