mirror of
https://github.com/ElVit/esphome_components.git
synced 2026-09-30 03:21:55 +02:00
fixed warning message in function 'read_request' (#13)
This commit is contained in:
@@ -230,10 +230,10 @@ void PanasonicHeatpumpComponent::read_request() {
|
||||
delay(10); // NOLINT
|
||||
continue;
|
||||
}
|
||||
// 4. byte shall be 0x10 or 0x21
|
||||
if (this->request_message_.size() == 4 && byte_ != 0x10 && byte_ != 0x21) {
|
||||
// 4. byte shall be 0x01, 0x10 or 0x21
|
||||
if (this->request_message_.size() == 4 && byte_ != 0x01 && byte_ != 0x10 && byte_ != 0x21) {
|
||||
this->request_receiving_ = false;
|
||||
ESP_LOGW(TAG, "Invalid request message: 0x%s. Expected last byte to be 0x10 or 0x21",
|
||||
ESP_LOGW(TAG, "Invalid request message: 0x%s. Expected last byte to be 0x01, 0x10 or 0x21",
|
||||
PanasonicHelpers::byte_array_to_hex_string(this->request_message_, ',').c_str());
|
||||
delay(10); // NOLINT
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user