mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 02:34:12 +01:00
midea_ac: Fix turbo mode. Preset BOOST. (#2029)
This commit is contained in:
parent
c7a52c3894
commit
e25935ef21
1 changed files with 5 additions and 2 deletions
|
@ -102,8 +102,11 @@ class PropertiesFrame : public midea_dongle::BaseFrame {
|
||||||
void set_sleep_mode(bool state) { this->set_bytemask_(20, 0x01, state); }
|
void set_sleep_mode(bool state) { this->set_bytemask_(20, 0x01, state); }
|
||||||
|
|
||||||
/* TURBO MODE */
|
/* TURBO MODE */
|
||||||
bool get_turbo_mode() const { return this->pbuf_[18] & 0x20; }
|
bool get_turbo_mode() const { return this->pbuf_[18] & 0x20 || this->pbuf_[20] & 0x02; }
|
||||||
void set_turbo_mode(bool state) { this->set_bytemask_(18, 0x20, state); }
|
void set_turbo_mode(bool state) {
|
||||||
|
this->set_bytemask_(18, 0x20, state);
|
||||||
|
this->set_bytemask_(20, 0x02, state);
|
||||||
|
}
|
||||||
|
|
||||||
/* FREEZE PROTECTION */
|
/* FREEZE PROTECTION */
|
||||||
bool get_freeze_protection_mode() const { return this->pbuf_[31] & 0x80; }
|
bool get_freeze_protection_mode() const { return this->pbuf_[31] & 0x80; }
|
||||||
|
|
Loading…
Reference in a new issue