Skip to content

Commit 4199092

Browse files
committed
Fix EEPROM compilation
1 parent 7978af6 commit 4199092

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/arduino/Godmode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ class GodmodeState {
112112
}
113113

114114
void resetEEPROM() {
115+
#if defined(EEPROM_SIZE)
115116
for(int i = 0; i < EEPROM_SIZE; ++i) {
116117
eeprom[i] = 255;
117118
}
119+
#endif
118120
}
119121

120122
void reset() {

0 commit comments

Comments
 (0)