From 458ae00f24c6d840dd0a9763dad514dab8f67fb0 Mon Sep 17 00:00:00 2001 From: "Sebastian H. Gabrielli" Date: Tue, 30 Apr 2024 11:26:08 +0200 Subject: [PATCH] Rename fanspeeeed to fanspeed --- prosjekt.X/command-handler.c | 2 +- prosjekt.X/{fan_speeeed.c => fan_speed.c} | 2 +- prosjekt.X/{fan_speeeed.h => fan_speed.h} | 0 prosjekt.X/main.c | 3 +++ prosjekt.X/nbproject/configurations.xml | 4 ++-- 5 files changed, 7 insertions(+), 4 deletions(-) rename prosjekt.X/{fan_speeeed.c => fan_speed.c} (95%) rename prosjekt.X/{fan_speeeed.h => fan_speed.h} (100%) 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