Skip to content

Commit fadc743

Browse files
author
James Foster
committed
Use E2END to calculate EEPROM_SIZE.
1 parent 8ed2732 commit fadc743

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cpp/arduino/EEPROM.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
#include <inttypes.h>
2828
#include <avr/io.h>
2929

30+
#if !defined(EEPROM_SIZE) && defined(E2END) && (E2END)
31+
#define EEPROM_SIZE (E2END + 1)
32+
#endif
3033
#ifdef EEPROM_SIZE
3134

3235
// Is this all the custom code required?

misc/default.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ platforms:
100100
features:
101101
defines:
102102
- __AVR_ATmega2560__
103-
- EEPROM_SIZE=(4096)
104103
warnings:
105104
flags:
106105
cplayClassic:

0 commit comments

Comments
 (0)