From 7bcec13f6e60464d2a969cdff1715fe453f4efb3 Mon Sep 17 00:00:00 2001 From: Elp03 Date: Wed, 20 Mar 2024 10:53:46 +0100 Subject: [PATCH] Merge two lines --- prosjekt.X/eeprom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();