Skip to content

Commit 81caedf

Browse files
authored
Merge pull request #210 from ScholliYT/patch-1
fix: Messed-up pre-compiler directives in EEPROM library
2 parents f3cd294 + 116653a commit 81caedf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libraries/EEPROM/EEPROM.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@
4141
#define DEBUGV(...) do { (void)0; } while (0)
4242
#endif
4343
#ifdef __asr650x__
44-
#define _EEPROM_SIZE (CY_FLASH_SIZEOF_ROW * 3)
44+
#define _EEPROM_SIZE (CY_FLASH_SIZEOF_ROW * 3)
4545
#define _EEPROM_BASE CY_SFLASH_USERBASE
4646
#else
47-
#define #define _EEPROM_SIZE 0xC00
47+
#define _EEPROM_SIZE 0xC00
4848
#define _EEPROM_BASE FLASH_BASE+0x7400
4949
#endif
50+
5051
EEPROMClass::EEPROMClass(uint32_t baddr)
5152
: _baddr(baddr)
5253
, _data(0)

0 commit comments

Comments
 (0)