diff --git a/prosjekt.X/eeprom.c b/prosjekt.X/eeprom.c index 586ad1a..dd93d99 100644 --- a/prosjekt.X/eeprom.c +++ b/prosjekt.X/eeprom.c @@ -72,7 +72,7 @@ void write_data_point_in_EEPROM(uint8_t byte, uint8_t fan_num){ // Reads all the datapoints to the choosen data. // it writes the data points in the USART stream. -void read_data_point_speed_info(uint8_t fan_num){ +uint8_t read_data_point_speed_info(uint8_t fan_num, uint8_t *array){ uint8_t byte = 0; if (fan_num == 1){ @@ -81,7 +81,8 @@ void read_data_point_speed_info(uint8_t fan_num){ check_eeprom_is_ready(); for (uint8_t i = 0; i