mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 19:44:53 +01:00
other fix
This commit is contained in:
parent
e5eb4f1560
commit
2d58a1ed02
1 changed files with 5 additions and 5 deletions
|
@ -5,11 +5,11 @@
|
|||
|
||||
static const char *const TAG = "espnow_packet";
|
||||
|
||||
inline ESPNowPacket::ESPNowPacket(const uint64_t mac64, const uint8_t *data, uint8_t size,
|
||||
uint32_t app_id) ESPHOME_ALWAYS_INLINE : mac64(mac64),
|
||||
size(size),
|
||||
app_id(app_id),
|
||||
retrys(0) {
|
||||
ESPNowPacket::ESPNowPacket(const uint64_t mac64, const uint8_t *data, uint8_t size,
|
||||
uint32_t app_id) ESPHOME_ALWAYS_INLINE : mac64(mac64),
|
||||
size(size),
|
||||
app_id(app_id),
|
||||
retrys(0) {
|
||||
if (this->mac64 == 0)
|
||||
this->mac64 = ESPNOW_BROADCAST_ADDR;
|
||||
this->is_broadcast = this->mac64 == ESPNOW_BROADCAST_ADDR;
|
||||
|
|
Loading…
Reference in a new issue