fix build for Core 2 (#20645)

This commit is contained in:
Christian Baars 2024-02-02 15:17:45 +01:00 committed by GitHub
parent f9ffb34e2f
commit a95314ff96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

View File

@ -141,12 +141,15 @@ struct ATCPacket_t{ //and PVVX
};
};
struct BTHome_info_t{
uint8_t encrypted:1;
uint8_t reserved:1;
uint8_t triggered:1;
uint8_t reserved2:2;
uint8_t version:2;
union BTHome_info_t{
struct{
uint8_t encrypted:1;
uint8_t reserved:1;
uint8_t triggered:1;
uint8_t reserved2:2;
uint8_t version:2;
};
char byte_value;
};
struct BLERingBufferItem_t{

View File

@ -1827,7 +1827,8 @@ void MI32parseBTHomePacket(char * _buf, uint32_t length, uint8_t addr[6], int RS
MIBLEsensors[_slot].RSSI = RSSI;
MIBLEsensors[_slot].lastTime = millis();
BTHome_info_t info = (BTHome_info_t)_buf[0];
BTHome_info_t info;
info.byte_value = _buf[0];
MIBLEsensors[_slot].feature.needsKey = info.encrypted;
uint32_t idx = 1;