浏览代码

🩹 Fix TFT tImage struct packing

Scott Lahteine 3 年前
父节点
当前提交
e84de791ab
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      Marlin/src/lcd/tft/tft_image.h

+ 7
- 1
Marlin/src/lcd/tft/tft_image.h 查看文件

@@ -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;

正在加载...
取消
保存