auto-formatting

This commit is contained in:
proddy
2025-11-02 13:01:03 +01:00
parent fe67f3a982
commit 9f1cd04d45
3 changed files with 5 additions and 5 deletions

View File

@@ -455,7 +455,7 @@ int Modbus::getRegisterCount(const DeviceValue & dv) {
uint32_t num_values = std::max(dv.max, (uint32_t)abs(dv.min)); uint32_t num_values = std::max(dv.max, (uint32_t)abs(dv.min));
int num_registers = 0; int num_registers = 0;
if (num_values < (1L << 16)) if (num_values < (1L << 16))
num_registers = 1; num_registers = 1;
else if (num_values <= (0xFFFFFFFF)) else if (num_values <= (0xFFFFFFFF))
num_registers = 2; num_registers = 2;

View File

@@ -246,9 +246,9 @@ class Boiler : public EMSdevice {
uint8_t hpSetDiffPress_; uint8_t hpSetDiffPress_;
uint8_t fan_; uint8_t fan_;
uint8_t hpshutdown_; uint8_t hpshutdown_;
uint8_t receiverValveVr0_; uint8_t receiverValveVr0_;
uint8_t expansionValveVr1_; uint8_t expansionValveVr1_;
uint8_t hpTargetSpd_; uint8_t hpTargetSpd_;
// Pool unit // Pool unit
int8_t poolSetTemp_; int8_t poolSetTemp_;

View File

@@ -208,7 +208,7 @@ bool Connect::set_mode(const char * value, const int8_t id) {
} }
uint8_t v; uint8_t v;
if (Helpers::value2enum(value, v, FL_(enum_mode2), {3, 1, 0})) { if (Helpers::value2enum(value, v, FL_(enum_mode2), {3, 1, 0})) {
// if (Helpers::value2enum(value, v, FL_(enum_mode8))) { // if (Helpers::value2enum(value, v, FL_(enum_mode8))) {
write_command(0xBB5 + rc->room(), 0, v); // no validate, mode change is broadcasted write_command(0xBB5 + rc->room(), 0, v); // no validate, mode change is broadcasted
return true; return true;
} }