move hardcoded consts to header files

This commit is contained in:
proddy
2026-09-24 11:28:14 +02:00
parent 046816785b
commit 40c4fdd2d1
17 changed files with 72 additions and 42 deletions
+2
View File
@@ -189,8 +189,10 @@ class AnalogSensor {
static constexpr double T25 = 298.15;
static constexpr double R0 = 100000;
static constexpr double Rt = 60000;
static constexpr uint32_t NTC_VREF_MV = 3300; // NTC voltage divider supply (in mV) - 3.3 V
static constexpr uint8_t MAX_SENSORS = 20;
static constexpr uint32_t MEASURE_ANALOG_INTERVAL = 500;
static constexpr uint32_t FREQ_ZERO_TIMEOUT_US = 10000000; // report 0 Hz if no edge arrives for this long (in us) - 10 seconds
static uuid::log::Logger logger_;
void remove_ha_topic(const int8_t type, const uint8_t id) const;