trying fix the packet structure issue

This commit is contained in:
NP v/d Spek 2024-08-27 15:09:02 +02:00
parent 136ed225c1
commit a271adad3b

View file

@ -58,11 +58,11 @@ struct ESPNowPacket {
uint16_t crc16 = 0x1234;
uint8_t data[MAX_ESPNOW_DATA_SIZE];
uint8_t space = 0;
} __attribute__((packed));
};
};
ESPNowPacket() ESPHOME_ALWAYS_INLINE : retrys(0) {}
ESPNowPacket(uint64_t mac64, const uint8_t *data, uint8_t size, uint32_t app_id);
inline ESPNowPacket() ESPHOME_ALWAYS_INLINE : retrys(0) {}
inline ESPNowPacket(uint64_t mac64, const uint8_t *data, uint8_t size, uint32_t app_id);
inline void info(std::string place);