diff --git a/examples/MQTT_Advanced_Thermostat/MQTT_Advanced_Thermostat.ino b/examples/MQTT_Advanced_Thermostat/MQTT_Advanced_Thermostat.ino index a9c17c0..9e5506b 100644 --- a/examples/MQTT_Advanced_Thermostat/MQTT_Advanced_Thermostat.ino +++ b/examples/MQTT_Advanced_Thermostat/MQTT_Advanced_Thermostat.ino @@ -33,7 +33,7 @@ * Install the Adafruit BME280 library * Any other temperature sensor may be used, like a Dallas sensor, BME380, BMP380, BME680 if you adapt the program accordingly. * - * Define the room temperature setpoint (desired room temperature) using #define ROOM_TEMPERATURE_SETPOINT. In a real application this should be settable. + * Set the room temperature setpoint (desired room temperature) using a MQTT client. * Eventually define the maximum central heating boiler temperature setpoint using #define CH_MAX_SETPOINT. * * Compile and upload the program as normal. If the temperature measured by your sensor is lower than the ROOM_TEMPERATURE_SETPOINT this thermostat program @@ -59,7 +59,7 @@ * * You MUST provide your WiFi credentials (const char * ssid and const char * password) * - * You MUST provide your MQTT server, MQTT user name and MQTT password (const char * mqtt_server, const char * mqtt_user = "CloudMQTT" and + * You MUST provide your MQTT server, MQTT user name and MQTT password (const char * mqtt_server, const char * mqtt_user and * const char * mqtt_password) * This thermostat publishes the corrected measured room temperature to the MQTT broker in topic 'temperature' * It subscribes to topic 'room_temperature_setpoint' to receive the room temperature setpoint. This temperature is not persistant. If you restart the diff --git a/src/EasyOpenTherm.cpp b/src/EasyOpenTherm.cpp index b1af084..0469c8b 100644 --- a/src/EasyOpenTherm.cpp +++ b/src/EasyOpenTherm.cpp @@ -431,7 +431,7 @@ void OTPhysicalLayer::sendBit(uint8_t va if(_state == STATE::INVALID) return; // Start reception after _send() has set _state to STATE::WAITING // ::handleInterrupt() passes from STATE_WATING to STATE::START_BIT, to STATE::RECEIVING for the data bits, to _state STATE::READY after the stop bit if(_state == STATE::READY) { - if(!_primary && digitalRead(_rxPin) == HIGH) { + if(!_primary && digitalRead(_rxPin) == HIGH) { _state = STATE::WAITING; _frame = 0; } else {