Skip to content

Commit db67033

Browse files
authored
Fix BufferedEEPROM example
DATA_EEPROM_BASE is defined for L1 by the eeprom library.
1 parent a71796f commit db67033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/NonReg/BufferedEEPROM/BufferedEEPROM.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <EEPROM.h>
2+
13
#if defined(DATA_EEPROM_BASE)
24
#warning "STM32 devices have an integrated EEPROM. No buffered API available."
35

@@ -8,8 +10,6 @@ void loop() {
810
}
911

1012
#else
11-
#include <EEPROM.h>
12-
1313
/**
1414
Most STM32 devices don't have an integrated EEPROM.
1515
To emulate a EEPROM, the STM32 Arduino core emulated

0 commit comments

Comments
 (0)