Skip to content

Commit

Permalink
Junkers modetype #163
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Oct 18, 2021
1 parent 2657b9d commit e17ce9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/devices/thermostat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,11 @@ uint8_t Thermostat::HeatingCircuit::get_mode_type() const {
uint8_t model = get_model();

if (model == EMS_DEVICE_FLAG_JUNKERS) {
if (modetype == 3) {
if (modetype == 2) {
return HeatingCircuit::Mode::HEAT;
} else if (modetype == 2) {
return HeatingCircuit::Mode::ECO;
} else if (modetype == 1) {
return HeatingCircuit::Mode::ECO;
} else if (modetype == 0) {
return HeatingCircuit::Mode::NOFROST;
}
} else if ((model == EMS_DEVICE_FLAG_RC35) || (model == EMS_DEVICE_FLAG_RC30_N)) {
Expand Down

0 comments on commit e17ce9c

Please sign in to comment.