OTA: Add incoming FW block check (#718)

This commit is contained in:
Olivier
2017-01-03 20:19:00 +01:00
committed by Henrik Ekblad
parent 570b6079b6
commit aa5cecfca1
5 changed files with 43 additions and 8 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ void SPIFlash::select()
#ifndef SPI_HAS_TRANSACTION
noInterrupts();
#endif
#ifndef ESP8266
#if defined(SPCR) && defined(SPSR)
_SPCR = SPCR;
_SPSR = SPSR;
#endif
@@ -88,7 +88,7 @@ void SPIFlash::unselect()
#else
interrupts();
#endif
#ifndef ESP8266
#if defined(SPCR) && defined(SPSR)
SPCR = _SPCR;
SPSR = _SPSR;
#endif
@@ -97,7 +97,7 @@ void SPIFlash::unselect()
/// setup SPI, read device ID etc...
boolean SPIFlash::initialize()
{
#ifndef ESP8266
#if defined(SPCR) && defined(SPSR)
_SPCR = SPCR;
_SPSR = SPSR;
#endif