uint8_t SizeIndex = (*((uint8_t*)*DataElementHeader) & 0x07);
*DataElementHeader += sizeof(uint8_t);
- *ElementHeaderSize = 1;
-
uint32_t ElementValue;
switch (SizeIndex)
*ElementHeaderSize = (1 + sizeof(uint32_t));
break;
default:
- ElementValue = (1UL << SizeIndex);
+ ElementValue = (1 << SizeIndex);
+ *ElementHeaderSize = 1;
break;
}