mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-19 16:16:13 +00:00
🩹 Fix TFT tImage struct packing
This commit is contained in:
parent
9be1de54ae
commit
e84de791ab
1 changed files with 7 additions and 1 deletions
|
@ -114,7 +114,13 @@ enum colorMode_t : uint8_t {
|
|||
|
||||
typedef colorMode_t ColorMode;
|
||||
|
||||
typedef struct __attribute__((__packed__)) {
|
||||
#ifdef __AVR__
|
||||
#define PACKED __attribute__((__packed__))
|
||||
#else
|
||||
#define PACKED
|
||||
#endif
|
||||
|
||||
typedef struct PACKED {
|
||||
void *data;
|
||||
uint16_t width;
|
||||
uint16_t height;
|
||||
|
|
Loading…
Reference in a new issue