Skip to content

Commit

Permalink
1.20m
Browse files Browse the repository at this point in the history
  • Loading branch information
klausahrenberg committed Feb 20, 2021
1 parent 2a204a1 commit 66fa3cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion WThermostat/src/WThermostat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "WThermostat_DLX_LH01.h"

#define APPLICATION "Thermostat"
#define VERSION "1.20l"
#define VERSION "1.20m"
#define FLAG_SETTINGS 0x20
#define DEBUG false

Expand Down
9 changes: 4 additions & 5 deletions WThermostat/src/WThermostat.h
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,13 @@ protected :
//55 AA 00 06 00 05 01 01 00 01 01
byte dt = (this->deviceOn->getBoolean() ? 0x01 : 0x00);
unsigned char deviceOnCommand[] = { 0x55, 0xAA, 0x00, 0x06, 0x00, 0x05,
0x01, 0x01, 0x00, 0x01, dt};
byteDeviceOn, 0x01, 0x00, 0x01, dt};
commandCharsToSerial(11, deviceOnCommand);
//notifyState();
}
}

void targetTemperatureManualModeToMcu() {
if (!isReceivingDataFromMcu()) {
if ((!isReceivingDataFromMcu()) && (schedulesMode->equalsString(SCHEDULES_MODE_OFF))) {
network->debug(F("Set target Temperature (manual mode) to %D"), targetTemperatureManualMode);
//55 AA 00 06 00 08 02 02 00 04 00 00 00 2C
byte ulValues[4];
Expand All @@ -601,7 +600,7 @@ protected :
byte sm = schedulesMode->getEnumIndex();
if (sm != 0xFF) {
unsigned char deviceOnCommand[] = { 0x55, 0xAA, 0x00, 0x06, 0x00, 0x05,
0x04, 0x04, 0x00, 0x01, sm};
byteSchedulesMode, 0x04, 0x00, 0x01, sm};
commandCharsToSerial(11, deviceOnCommand);
}
}
Expand Down Expand Up @@ -736,7 +735,7 @@ protected :
if (!WProperty::isEqual(targetTemperatureManualMode, this->targetTemperature->getDouble(), 0.01)) {
targetTemperatureManualMode = this->targetTemperature->getDouble();
targetTemperatureManualModeToMcu();
schedulesMode->setString(SCHEDULES_MODE_OFF);
//schedulesMode->setString(SCHEDULES_MODE_OFF);
}
}

Expand Down
Binary file not shown.

0 comments on commit 66fa3cd

Please sign in to comment.