Browse Source

🩹 Fix TFT tImage struct packing

Scott Lahteine 3 years ago
parent
commit
e84de791ab
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      Marlin/src/lcd/tft/tft_image.h

+ 7
- 1
Marlin/src/lcd/tft/tft_image.h View File

114
 
114
 
115
 typedef colorMode_t ColorMode;
115
 typedef colorMode_t ColorMode;
116
 
116
 
117
-typedef struct __attribute__((__packed__)) {
117
+#ifdef __AVR__
118
+  #define PACKED __attribute__((__packed__))
119
+#else
120
+  #define PACKED
121
+#endif
122
+
123
+typedef struct PACKED {
118
   void *data;
124
   void *data;
119
   uint16_t width;
125
   uint16_t width;
120
   uint16_t height;
126
   uint16_t height;

Loading…
Cancel
Save