Put the define in the `config.h` file and conditionally defined it in the `load.h` file.
This commit is contained in:
parent
4e3893156d
commit
32ec258b67
|
@ -56,5 +56,12 @@ const uint16_t GatePulses[5] = {250, 500, 750, 1000, 1250};
|
||||||
const double Tau = 8250;
|
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
|
#endif //CONFIG_H
|
||||||
|
|
|
@ -27,12 +27,10 @@
|
||||||
*/
|
*/
|
||||||
#define HIGHTHRESH 1000
|
#define HIGHTHRESH 1000
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Hysteresis value
|
#ifndef HYSTERESIS
|
||||||
* Anything below this value will keep or turn on the associated
|
|
||||||
* pin.
|
|
||||||
*/
|
|
||||||
#define HYSTERESIS 900
|
#define HYSTERESIS 900
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Checks if the adc pin is inbetween LOWTHRESH and HIGHTHRESH and then
|
* @brief Checks if the adc pin is inbetween LOWTHRESH and HIGHTHRESH and then
|
||||||
|
|
Loading…
Reference in New Issue