Fix bug on MD380

Fixed a bug where pressing the side button would lead to a crash,
probably caused by a misaligned memory access, due to the addition of a
packed attribute.
This commit is contained in:
Niccolò Izzo 2021-04-09 13:25:44 +02:00
parent 0ca7258f03
commit d4ad8b12b1
1 changed files with 1 additions and 2 deletions

View File

@ -136,8 +136,7 @@ typedef struct layout_t
fontSize_t bottom_font;
fontSize_t input_font;
fontSize_t menu_font;
}
__attribute__((packed)) layout_t;
} layout_t;
/**
* This structs contains state variables internal to the