mirror of
https://github.com/esphome/esphome.git
synced 2024-11-15 03:28:12 +01:00
fix checking broadcast message
This commit is contained in:
parent
9363dd8823
commit
e190af38ba
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ void ESPNowComponent::on_data_received(const uint8_t *addr, const uint8_t *data,
|
|||
ESPNowPackage *package = new ESPNowPackage(addr_to_uint64(addr), data, size);
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 1)
|
||||
package->is_broadcast(memcmp(recv_info->des_addr, ESP_NOW.BROADCAST_ADDR, ESP_NOW_ETH_ALEN) == 0);
|
||||
package->is_broadcast(addr_to_uint64(recv_info->des_addr) == ESPNOW_BROADCAST_ADDR);
|
||||
#endif
|
||||
|
||||
package->rssi(rx_ctrl->rssi);
|
||||
|
|
Loading…
Reference in a new issue