From 1b615155ff4eed63f65123a1e67d2db0f10c20fc Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Mon, 23 Sep 2024 12:58:10 -0700 Subject: [PATCH] made helper functions private in scope. --- src/load/load.c | 4 ++-- src/load/load.h | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/load/load.c b/src/load/load.c index f31c9d6..faa4a99 100644 --- a/src/load/load.c +++ b/src/load/load.c @@ -30,7 +30,7 @@ static bool porta_disabled[8] = {0}; static bool portb_disabled[8] = {0}; -bool is_valid_load(uint16_t val) +static bool is_valid_load(uint16_t val) { if(val > LOWTHRESH && val < HIGHTHRESH) { return true; @@ -38,7 +38,7 @@ bool is_valid_load(uint16_t val) return false; } -bool is_below_target(uint16_t val) +static bool is_below_target(uint16_t val) { if(val < HYSTERESIS){ return true; diff --git a/src/load/load.h b/src/load/load.h index d36e07d..275ce7a 100644 --- a/src/load/load.h +++ b/src/load/load.h @@ -50,19 +50,6 @@ void Load_HandleLoadPortA(uint8_t adc_pin, uint8_t out_pin); */ void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin); -/** - * @brief A helper function that handles the valid value range. - * @return True/False value. - */ -bool is_valid_load(uint16_t val); - - - -/** - * @brief A helper function that checks if current load value is below target. - * @return True/False value. - */ -bool is_below_target(uint16_t val); #endif /* LOAD_H */