Skip to content

Commit 32765c6

Browse files
committed
🩹 Fix TFT image packing
1 parent 602e147 commit 32765c6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Marlin/src/lcd/tft/tft_image.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,13 @@ enum colorMode_t : uint8_t {
114114

115115
typedef colorMode_t ColorMode;
116116

117-
typedef struct __attribute__((__packed__)) {
117+
#ifdef __AVR__
118+
#define IMG_PACKED __attribute__((__packed__))
119+
#else
120+
#define IMG_PACKED
121+
#endif
122+
123+
typedef struct IMG_PACKED {
118124
void *data;
119125
uint16_t width;
120126
uint16_t height;

0 commit comments

Comments
 (0)