Skip to content

Commit

Permalink
馃┕ Fix TFT image packing
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 29, 2022
1 parent a03516a commit f9154ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Marlin/src/lcd/tft/tft_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,13 @@ enum colorMode_t : uint8_t {

typedef colorMode_t ColorMode;

typedef struct __attribute__((__packed__)) {
#ifdef __AVR__
#define IMG_PACKED __attribute__((__packed__))
#else
#define IMG_PACKED
#endif

typedef struct IMG_PACKED {
void *data;
uint16_t width;
uint16_t height;
Expand Down

0 comments on commit f9154ec

Please sign in to comment.