Browse Source

Remove duplicate call to EEPROMr.begin (#1214)

ota
Xose Pérez 6 years ago
parent
commit
ba4d4be810
2 changed files with 2 additions and 3 deletions
  1. +2
    -1
      code/espurna/config/general.h
  2. +0
    -2
      code/espurna/settings.ino

+ 2
- 1
code/espurna/config/general.h View File

@ -148,7 +148,8 @@
// EEPROM // EEPROM
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#define EEPROM_SIZE 4096 // EEPROM size in bytes
#define EEPROM_SIZE SPI_FLASH_SEC_SIZE // EEPROM size in bytes (1 sector = 4096 bytes)
//#define EEPROM_RORATE_SECTORS 2 // Number of sectors to use for EEPROM rotation //#define EEPROM_RORATE_SECTORS 2 // Number of sectors to use for EEPROM rotation
// If not defined the firmware will use a number based // If not defined the firmware will use a number based
// on the number of available sectors // on the number of available sectors


+ 0
- 2
code/espurna/settings.ino View File

@ -443,8 +443,6 @@ void settingsRegisterCommand(const String& name, void (*call)(Embedis*)) {
void settingsSetup() { void settingsSetup() {
EEPROMr.begin(SPI_FLASH_SEC_SIZE);
_serial.callback([](uint8_t ch) { _serial.callback([](uint8_t ch) {
#if TELNET_SUPPORT #if TELNET_SUPPORT
telnetWrite(ch); telnetWrite(ch);


Loading…
Cancel
Save