1
0
Fork 0

enforce limit to manufacturer ID value

This commit is contained in:
Kevin Matz 2021-08-12 15:42:28 -04:00
parent 0f00adbc55
commit 966e3f3909
1 changed files with 3 additions and 2 deletions

View File

@ -31,9 +31,10 @@ namespace RDM {
struct UID {
union {
uint64_t uid : 48;
struct {
uint16_t manufacturer;
struct __attribute__((packed)) {
uint32_t device;
uint16_t manufacturer : 15;
bool flag : 1;
};
};
bool isBroadcast() const {