mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
automatic clang formatting
This commit is contained in:
@@ -53,7 +53,8 @@ class Boiler : public EMSdevice {
|
||||
|
||||
uint8_t last_boilerState = 0xFF; // remember last state of heating and warm water on/off
|
||||
uint8_t mqtt_format_; // single, nested or ha
|
||||
bool changed_ = false;;
|
||||
bool changed_ = false;
|
||||
;
|
||||
|
||||
static constexpr uint8_t EMS_TYPE_UBAParameterWW = 0x33;
|
||||
static constexpr uint8_t EMS_TYPE_UBAFunctionTest = 0x1D;
|
||||
|
||||
@@ -77,7 +77,6 @@ void Mixing::device_info(JsonArray & root) {
|
||||
render_value_json(root, "", F("Current pump modulation"), pumpMod_, F_(percent));
|
||||
render_value_json(root, "", F("Current valve status"), status_, nullptr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// check to see if values have been updated
|
||||
|
||||
@@ -973,7 +973,8 @@ void Thermostat::process_EasyMonitor(std::shared_ptr<const Telegram> telegram) {
|
||||
// Settings Parameters - 0xA5 - RC30_1
|
||||
void Thermostat::process_IBASettings(std::shared_ptr<const Telegram> telegram) {
|
||||
// 22 - display line on RC35
|
||||
changed_ |= telegram->read_value(ibaMainDisplay_,
|
||||
changed_ |=
|
||||
telegram->read_value(ibaMainDisplay_,
|
||||
0); // display on Thermostat: 0 int. temp, 1 int. setpoint, 2 ext. temp., 3 burner temp., 4 ww temp, 5 functioning mode, 6 time, 7 data, 8 smoke temp
|
||||
changed_ |= telegram->read_value(ibaLanguage_, 1); // language on Thermostat: 0 german, 1 dutch, 2 french, 3 italian
|
||||
changed_ |= telegram->read_value(ibaCalIntTemperature_, 2); // offset int. temperature sensor, by * 0.1 Kelvin
|
||||
|
||||
@@ -305,10 +305,8 @@ void EMSESP::publish_device_values(uint8_t device_type) {
|
||||
void EMSESP::publish_other_values() {
|
||||
if (Mqtt::connected()) {
|
||||
for (const auto & emsdevice : emsdevices) {
|
||||
if (emsdevice && (emsdevice->device_type() != EMSdevice::DeviceType::BOILER)
|
||||
&& (emsdevice->device_type() != EMSdevice::DeviceType::THERMOSTAT)
|
||||
&& (emsdevice->device_type() != EMSdevice::DeviceType::SOLAR)
|
||||
&& (emsdevice->device_type() != EMSdevice::DeviceType::MIXING)) {
|
||||
if (emsdevice && (emsdevice->device_type() != EMSdevice::DeviceType::BOILER) && (emsdevice->device_type() != EMSdevice::DeviceType::THERMOSTAT)
|
||||
&& (emsdevice->device_type() != EMSdevice::DeviceType::SOLAR) && (emsdevice->device_type() != EMSdevice::DeviceType::MIXING)) {
|
||||
emsdevice->publish_values();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ void System::measure_analog() {
|
||||
static uint32_t measure_last_ = 0;
|
||||
static uint32_t sum_ = 0;
|
||||
|
||||
if (!measure_last_ || (uint32_t)(uuid::get_uptime() - measure_last_) >= 1100) {
|
||||
if (!measure_last_ || (uint32_t)(uuid::get_uptime() - measure_last_) >= SYSTEM_MEASURE_ANALOG_INTERVAL) {
|
||||
measure_last_ = uuid::get_uptime();
|
||||
#if defined(ESP8266)
|
||||
uint16_t a = analogRead(A0);
|
||||
|
||||
@@ -72,8 +72,9 @@ class System {
|
||||
static constexpr uint32_t LED_WARNING_BLINK = 1000; // pulse to show no connection, 1 sec
|
||||
static constexpr uint32_t LED_WARNING_BLINK_FAST = 100; // flash quickly for boot up sequence
|
||||
static constexpr uint32_t SYSTEM_HEARTBEAT_INTERVAL = 60000; // in milliseconds, how often the MQTT heartbeat is sent (1 min)
|
||||
static constexpr uint32_t SYSTEM_MEASURE_ANALOG_INTERVAL = 1100;
|
||||
|
||||
// internal LED
|
||||
// internal LED
|
||||
static constexpr uint8_t LED_ON = LOW;
|
||||
|
||||
void led_monitor();
|
||||
|
||||
Reference in New Issue
Block a user