Fixed missing padding in kbd_msg_t bitfield struct

This commit is contained in:
Silvano Seva 2020-12-15 11:25:04 +01:00 committed by Federico Amedeo Izzo
parent 749f5a1444
commit 81a2e1fc22
1 changed files with 4 additions and 3 deletions

View File

@ -80,10 +80,11 @@ typedef union
{
struct
{
uint32_t long_press : 1,
keys : 29;
uint32_t _padding : 2,
long_press : 1,
keys : 29;
};
uint32_t value;
} kbd_msg_t;