mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
auto-formatting
This commit is contained in:
@@ -455,7 +455,7 @@ int Modbus::getRegisterCount(const DeviceValue & dv) {
|
||||
uint32_t num_values = std::max(dv.max, (uint32_t)abs(dv.min));
|
||||
int num_registers = 0;
|
||||
|
||||
if (num_values < (1L << 16))
|
||||
if (num_values < (1L << 16))
|
||||
num_registers = 1;
|
||||
else if (num_values <= (0xFFFFFFFF))
|
||||
num_registers = 2;
|
||||
|
||||
@@ -246,9 +246,9 @@ class Boiler : public EMSdevice {
|
||||
uint8_t hpSetDiffPress_;
|
||||
uint8_t fan_;
|
||||
uint8_t hpshutdown_;
|
||||
uint8_t receiverValveVr0_;
|
||||
uint8_t expansionValveVr1_;
|
||||
uint8_t hpTargetSpd_;
|
||||
uint8_t receiverValveVr0_;
|
||||
uint8_t expansionValveVr1_;
|
||||
uint8_t hpTargetSpd_;
|
||||
|
||||
// Pool unit
|
||||
int8_t poolSetTemp_;
|
||||
|
||||
@@ -208,7 +208,7 @@ bool Connect::set_mode(const char * value, const int8_t id) {
|
||||
}
|
||||
uint8_t v;
|
||||
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
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user