other fix

This commit is contained in:
NP v/d Spek 2024-08-24 21:20:21 +02:00
parent e5eb4f1560
commit 2d58a1ed02

View file

@ -5,11 +5,11 @@
static const char *const TAG = "espnow_packet"; static const char *const TAG = "espnow_packet";
inline ESPNowPacket::ESPNowPacket(const uint64_t mac64, const uint8_t *data, uint8_t size, ESPNowPacket::ESPNowPacket(const uint64_t mac64, const uint8_t *data, uint8_t size,
uint32_t app_id) ESPHOME_ALWAYS_INLINE : mac64(mac64), uint32_t app_id) ESPHOME_ALWAYS_INLINE : mac64(mac64),
size(size), size(size),
app_id(app_id), app_id(app_id),
retrys(0) { retrys(0) {
if (this->mac64 == 0) if (this->mac64 == 0)
this->mac64 = ESPNOW_BROADCAST_ADDR; this->mac64 = ESPNOW_BROADCAST_ADDR;
this->is_broadcast = this->mac64 == ESPNOW_BROADCAST_ADDR; this->is_broadcast = this->mac64 == ESPNOW_BROADCAST_ADDR;