diff --git a/prosjekt.X/eeprom.c b/prosjekt.X/eeprom.c index 0a7e4d8..5dd4616 100644 --- a/prosjekt.X/eeprom.c +++ b/prosjekt.X/eeprom.c @@ -29,8 +29,7 @@ void check_eeprom_is_ready(){ // If true, the infromation is replaced with the intaken struct // else the intaken struct is written at the address. void write_struct_from_EEPROM(config_t write_struct){ - uint8_t struct_size; - struct_size = sizeof(write_struct); + uint8_t struct_size = sizeof(write_struct); check_eeprom_is_ready();