Merge I2C command handler into main #18

Merged
sebgab merged 15 commits from output-fan-data-over-i2c into main 2024-04-30 08:37:29 +00:00
Showing only changes of commit 4666f79dd3 - Show all commits

View File

@ -1,6 +1,6 @@
/* /*
* File: main.c * File: main.c
* Author: Sebastian H. Gabrielli, Helle Augland Grasmo * Author: Sebastian H. Gabrielli, Helle Augland Grasmo, Ina Min Rørnes
* *
* Created on March 6, 2024, 12:34 PM * Created on March 6, 2024, 12:34 PM
*/ */
@ -24,8 +24,8 @@
#include <util/delay.h> #include <util/delay.h>
// Fan history variables // Fan history variables
volatile uint16_t fan1_history[512] = {1, 2, 3, 4}; volatile uint16_t fan1_history[512] = { 0 };
volatile uint16_t fan2_history[512] = {2, 3, 4, 5}; volatile uint16_t fan2_history[512] = { 0 };
// Default config is 500ms sample rate // Default config is 500ms sample rate
volatile config_t config = { 500 }; volatile config_t config = { 500 };