From bf4f3aaa8124fc2b43865aa4c75dfe0b8ad9925c Mon Sep 17 00:00:00 2001 From: Elp03 Date: Tue, 19 Mar 2024 14:02:10 +0100 Subject: [PATCH] fix return array --- prosjekt.X/eeprom.c | 9 ++++++--- prosjekt.X/eeprom.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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