mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 00:41:44 +01:00
parent
ae6736311a
commit
72df3d1606
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ optional<XiaomiParseResult> parse_xiaomi_header(const esp32_ble_tracker::Service
|
|||
}
|
||||
|
||||
bool decrypt_xiaomi_payload(std::vector<uint8_t> &raw, const uint8_t *bindkey, const uint64_t &address) {
|
||||
if (!((raw.size() == 19) || ((raw.size() >= 22) && (raw.size() <= 24)))) {
|
||||
if ((raw.size() != 19) && ((raw.size() < 22) || (raw.size() > 24))) {
|
||||
ESP_LOGVV(TAG, "decrypt_xiaomi_payload(): data packet has wrong size (%d)!", raw.size());
|
||||
ESP_LOGVV(TAG, " Packet : %s", format_hex_pretty(raw.data(), raw.size()).c_str());
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue