Skip to content

Commit 03e4168

Browse files
James Fosterianfixes
James Foster
authored andcommitted
Conditionalize inclusion of EEPROM.
1 parent d7e7653 commit 03e4168

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: cpp/arduino/Godmode.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,7 @@ SPIClass SPI = SPIClass(&GODMODE()->spi.dataIn, &GODMODE()->spi.dataOut);
114114
// defined in Wire.h
115115
TwoWire Wire = TwoWire();
116116

117-
#include <EEPROM.h>
118-
EEPROMClass EEPROM;
117+
#if defined(EEPROM_SIZE)
118+
#include <EEPROM.h>
119+
EEPROMClass EEPROM;
120+
#endif

0 commit comments

Comments
 (0)