mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
fix build for Core 2 (#20645)
This commit is contained in:
parent
f9ffb34e2f
commit
a95314ff96
@ -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{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user