From 3caa74f642f887e8b1ce597dead270fe995db614 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Fri, 18 Oct 2024 21:43:04 -0700 Subject: [PATCH] Added the needed defines for the high and low hysteresis points. --- src/load/load.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/load/load.h b/src/load/load.h index e473b71..0b6d1d6 100644 --- a/src/load/load.h +++ b/src/load/load.h @@ -28,10 +28,23 @@ #define HIGHTHRESH 1000 -#ifndef HYSTERESIS -#define HYSTERESIS 900 +/** + * @brief The upper Hystersis value. + * This is the upper bound of the digital/boolean hysteresis curve. + */ +#ifndef HYSTERESIS_HI +#define HYSTERESIS_HI 900 #endif +/** + * @brief The lower Hystersis value. + * This is the upper bound of the digital/boolean hysteresis curve. + */ +#ifndef HYSTERESIS_LO +#define HYSTERESIS_LO 700 +#endif + + /** * @brief Checks if the adc pin is inbetween LOWTHRESH and HIGHTHRESH and then * sets or disables the output pin on PORTA.