diff --git a/prosjekt.X/command-handler.c b/prosjekt.X/command-handler.c index 7ae96f5..eb97922 100644 --- a/prosjekt.X/command-handler.c +++ b/prosjekt.X/command-handler.c @@ -1,5 +1,5 @@ #include "command-handler.h" -#include "fan_speeeed.h" +#include "fan_speed.h" // Initialize empty, global command context volatile command_context_t context = {UNKNOWN_COMMAND, SRC_NONE, FAN_NONE, diff --git a/prosjekt.X/fan_speeeed.c b/prosjekt.X/fan_speed.c similarity index 95% rename from prosjekt.X/fan_speeeed.c rename to prosjekt.X/fan_speed.c index db41f07..7b84c59 100644 --- a/prosjekt.X/fan_speeeed.c +++ b/prosjekt.X/fan_speed.c @@ -1,4 +1,4 @@ -#include "fan_speeeed.h" +#include "fan_speed.h" #include "uart.h" uint16_t timer_period_ms = 1; diff --git a/prosjekt.X/fan_speeeed.h b/prosjekt.X/fan_speed.h similarity index 100% rename from prosjekt.X/fan_speeeed.h rename to prosjekt.X/fan_speed.h diff --git a/prosjekt.X/main.c b/prosjekt.X/main.c index 7dfb0f0..25da254 100644 --- a/prosjekt.X/main.c +++ b/prosjekt.X/main.c @@ -26,6 +26,9 @@ // Fan history variables volatile uint16_t fan1_history[512] = {0}; volatile uint16_t fan2_history[512] = {0}; +// Fan history index variable +volatile uint16_t fan1_history_index = 0; +volatile uint16_t fan2_history_index = 0; // Default config is 500ms sample rate volatile config_t config = {500}; diff --git a/prosjekt.X/nbproject/configurations.xml b/prosjekt.X/nbproject/configurations.xml index 46b7e18..7d01886 100644 --- a/prosjekt.X/nbproject/configurations.xml +++ b/prosjekt.X/nbproject/configurations.xml @@ -6,11 +6,11 @@ projectFiles="true"> uart.h voltage.h - fan_speeeed.h themistor-temp.h command-handler.h eeprom.h i2c.h + fan_speed.h main.c uart.c voltage.c - fan_speeeed.c thermistor-temp.c command-handler.c i2c.c eeprom.c + fan_speed.c Makefile