Mixing Uint8 and int16 in Struct | Cypress Semiconductor
Mixing Uint8 and int16 in Struct
Summary: 8 Replies, Latest post by odissey1 on 08 Jul 2015 08:23 PM PDT
Verified Answers: 2
08 Jul 2015 10:24 AM PDT#1
I have a USB report structure:
int16 Y axis
But the compiler assigns 2 bytes for the Unit8 instead of one so the USB packet is incorrect. Is this expected?