mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
try to fix invalid peer
This commit is contained in:
parent
16586ae50d
commit
e650a617c1
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ bool ESPNowComponent::send(ESPNowPacket packet) {
|
|||
|
||||
void ESPNowComponent::on_data_sent(const uint8_t *mac_addr, esp_now_send_status_t status) {
|
||||
ESPNowPacket packet; // NOLINT
|
||||
uint64_t peer;
|
||||
uint64_t peer = 0;
|
||||
memcpy((void *) &peer, mac_addr, 6);
|
||||
if (xQueuePeek(ESPNowComponent::static_->send_queue_, (void *) &packet, 10 / portTICK_PERIOD_MS) == pdTRUE) {
|
||||
if (packet.peer != peer) {
|
||||
|
|
Loading…
Reference in a new issue