From dd71a4fbe4892f6af4f768ee27c780437cf60ebf Mon Sep 17 00:00:00 2001 From: I-am-nightingale Date: Thu, 11 Apr 2024 17:01:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D1=8B=D1=87=D1=83-=D1=82=D1=8B=D1=87?= =?UTF-8?q?=D1=83=20=D0=B2=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8,=20?= =?UTF-8?q?=D0=BD=D0=B8=D1=87=D0=B5=D0=B3=D0=BE=20=D0=BD=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D1=83=D1=87=D0=B0=D0=B5=D1=82=D1=81=D1=8F..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tclac/tclac.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/tclac/tclac.cpp b/components/tclac/tclac.cpp index 79b577b..f6d96d6 100644 --- a/components/tclac/tclac.cpp +++ b/components/tclac/tclac.cpp @@ -185,6 +185,11 @@ void tclacClimate::readData() { // Climate control void tclacClimate::control(const ClimateCall &call) { + takeControl(); +} + + +void tclacClimate::takeControl() { uint8_t switchvar = 0; @@ -580,7 +585,7 @@ void tclacClimate::dataShow(bool flow, bool shine) { void tclacClimate::set_beeper_state(bool state) { this->beeper_status_ = state; if (force_mode_status_){ - tclacClimate::control(); + tclacClimate::takeControl(); } } // Получение состояния дисплея кондиционера