fix sram as eeprom (#382)

This commit is contained in:
Tjeerd 2020-05-19 07:15:14 +02:00 committed by GitHub
parent 5a8d460134
commit 5ac4eacbd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -436,7 +436,7 @@ int8_t InternalSTM32F4_EEPROM_Class::eraseFlashSector(uint32_t address, uint32_t
#if defined(USE_SPI_EEPROM)
SPI_EEPROM_Class EEPROM(EmulatedEEPROMMconfig);
#elif defined(STM32F407xx)
#elif defined(STM32F407xx) & !defined(SRAM_AS_EEPROM)
InternalSTM32F4_EEPROM_Class EEPROM(EmulatedEEPROMMconfig);
#endif

View File

@ -422,7 +422,7 @@ class InternalSTM32F4_EEPROM_Class : public FLASH_EEPROM_BaseClass
#if defined(USE_SPI_EEPROM)
extern SPI_EEPROM_Class EEPROM;
#elif defined(STM32F407xx)
#elif defined(STM32F407xx) & !defined(SRAM_AS_EEPROM)
extern InternalSTM32F4_EEPROM_Class EEPROM;
#endif