Put the define in the `config.h` file and conditionally defined it in the `load.h` file.

This commit is contained in:
jakeg00dwin 2024-09-23 13:44:02 -07:00
parent 4e3893156d
commit 32ec258b67
2 changed files with 10 additions and 5 deletions

View File

@ -56,5 +56,12 @@ const uint16_t GatePulses[5] = {250, 500, 750, 1000, 1250};
const double Tau = 8250;
/**
* @brief Hysteresis value
* Anything below this value will keep or turn on the associated
* pin in thermostat mode.
*/
#define HYSTERESIS 900
#endif //CONFIG_H

View File

@ -27,12 +27,10 @@
*/
#define HIGHTHRESH 1000
/**
* @brief Hysteresis value
* Anything below this value will keep or turn on the associated
* pin.
*/
#ifndef HYSTERESIS
#define HYSTERESIS 900
#endif
/**
* @brief Checks if the adc pin is inbetween LOWTHRESH and HIGHTHRESH and then