Update eeprom.c

Quick update, needs to be checked