made helper functions private in scope.

This commit is contained in:
jakeg00dwin 2024-09-23 12:58:10 -07:00
parent 3b9845487c
commit 1b615155ff
2 changed files with 2 additions and 15 deletions

View File

@ -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;

View File

@ -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 */