From ea3040da12af46e5d227fe5edeb4d580e42d7658 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Tue, 5 Jan 2016 13:57:04 -0800 Subject: firmware: e3xx: Added .eeprom section that gets written. The EEPROM section was not getting written by make install, so whatever was in there is in there. Signed-off-by: Moritz Fischer --- firmware/e300/battery/eeprom.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/e300/battery/eeprom.c') diff --git a/firmware/e300/battery/eeprom.c b/firmware/e300/battery/eeprom.c index f8bc172d2..79b1f9052 100644 --- a/firmware/e300/battery/eeprom.c +++ b/firmware/e300/battery/eeprom.c @@ -16,6 +16,9 @@ #include "eeprom.h" #include +/* default values for eeprom */ +char eeprom[] EEMEM = {0x00, 0x00, 0x00}; + /* the avr libc wants it this way ... */ static uint8_t* EEPROM_AUTOBOOT_OFFSET = (uint8_t *) 0x00; static uint16_t *EEPROM_LAST_FULL_OFFSET = (uint16_t *) 0x04; -- cgit v1.2.3