浏览代码

🩹 Fix TFT image PACKED conflict

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

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

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

正在加载...
取消
保存