Parcourir la source

🩹 Fix TFT tImage struct packing

Scott Lahteine il y a 3 ans
Parent
révision
e84de791ab
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7
    1
      Marlin/src/lcd/tft/tft_image.h

+ 7
- 1
Marlin/src/lcd/tft/tft_image.h Voir le fichier

@@ -114,7 +114,13 @@ enum colorMode_t : uint8_t {
114 114
 
115 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 124
   void *data;
119 125
   uint16_t width;
120 126
   uint16_t height;

Chargement…
Annuler
Enregistrer