From ca0ef9447819cb7b45e31c99dc38cd5f36075539 Mon Sep 17 00:00:00 2001 From: Yurii Date: Fri, 19 Jan 2024 19:42:29 +0300 Subject: [PATCH] chore: bump OpenTherm Library --- platformio.ini | 2 +- src/OpenThermTask.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 3665620..1d1685a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -17,7 +17,7 @@ framework = arduino lib_deps = bblanchon/ArduinoJson@^7.0.0 ;ihormelnyk/OpenTherm Library@^1.1.4 - https://github.com/Laxilef/opentherm_library/archive/refs/heads/dev.zip + https://github.com/Laxilef/opentherm_library/archive/refs/heads/fix_start_bit.zip arduino-libraries/ArduinoMqttClient@^0.1.7 ;lennarthennigs/ESP Telnet@^2.1.2 https://github.com/LennartHennigs/ESPTelnet/archive/refs/tags/2.2.zip diff --git a/src/OpenThermTask.h b/src/OpenThermTask.h index 29ac1f6..d1d561d 100644 --- a/src/OpenThermTask.h +++ b/src/OpenThermTask.h @@ -42,6 +42,7 @@ protected: void setup() { Log.sinfoln(FPSTR(L_OT), F("Started. GPIO IN: %hhu, GPIO OUT: %hhu"), settings.opentherm.inPin, settings.opentherm.outPin); + ot->setMinWaitTimeForStartBit(19000); // 20ms - 5% ot->setAfterSendRequestCallback(OpenThermTask::sendRequestCallback); ot->setYieldCallback([this]() { this->delay(25);