mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-28 01:03:05 +05:00
feat: allow build-time overrides for NTC sensor defaults
This commit is contained in:
1 parent
8a61cd1861
commit
53e5dedfc6
1 file changed
+28
-10
+28
-10
@@ -23,16 +23,6 @@
|
||||
#define THERMOSTAT_INDOOR_MIN_TEMP 5
|
||||
#define THERMOSTAT_INDOOR_MAX_TEMP 40
|
||||
|
||||
#define DEFAULT_NTC_NOMINAL_RESISTANCE 10000.0f
|
||||
#define DEFAULT_NTC_NOMINAL_TEMP 25.0f
|
||||
#define DEFAULT_NTC_REF_RESISTANCE 10000.0f
|
||||
#define DEFAULT_NTC_BETA_FACTOR 3950.0f
|
||||
#ifndef DEFAULT_NTC_VREF
|
||||
#define DEFAULT_NTC_VREF 3300.0f
|
||||
#endif
|
||||
#define DEFAULT_NTC_VLOW_THRESHOLD 25.0f
|
||||
#define DEFAULT_NTC_VHIGH_THRESHOLD 3298.0f
|
||||
|
||||
#ifndef BUILD_VERSION
|
||||
#define BUILD_VERSION "0.0.0"
|
||||
#endif
|
||||
@@ -189,6 +179,34 @@
|
||||
#define DEFAULT_SENSOR_INDOOR_TYPE Sensors::Type::DALLAS_TEMP
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_NTC_NOMINAL_RESISTANCE
|
||||
#define DEFAULT_NTC_NOMINAL_RESISTANCE 10000.0f
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_NTC_NOMINAL_TEMP
|
||||
#define DEFAULT_NTC_NOMINAL_TEMP 25.0f
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_NTC_REF_RESISTANCE
|
||||
#define DEFAULT_NTC_REF_RESISTANCE 10000.0f
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_NTC_BETA_FACTOR
|
||||
#define DEFAULT_NTC_BETA_FACTOR 3950.0f
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_NTC_VREF
|
||||
#define DEFAULT_NTC_VREF 3300.0f
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_NTC_VLOW_THRESHOLD
|
||||
#define DEFAULT_NTC_VLOW_THRESHOLD 25.0f
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_NTC_VHIGH_THRESHOLD
|
||||
#define DEFAULT_NTC_VHIGH_THRESHOLD 3298.0f
|
||||
#endif
|
||||
|
||||
#ifndef SENSORS_AMOUNT
|
||||
#define SENSORS_AMOUNT 20
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user