Add version argument to ESPDEPRECATED macro (#2116)

This commit is contained in:
Oxan van Leeuwen
2021-08-04 00:43:01 +02:00
committed by GitHub
parent 441d5bd44d
commit 20f7eb7327
7 changed files with 36 additions and 36 deletions
+2 -2
View File
@@ -148,9 +148,9 @@ struct Color {
static const Color WHITE;
};
ESPDEPRECATED("Use Color::BLACK instead of COLOR_BLACK")
ESPDEPRECATED("Use Color::BLACK instead of COLOR_BLACK", "v1.21")
static const Color COLOR_BLACK(0, 0, 0, 0);
ESPDEPRECATED("Use Color::WHITE instead of COLOR_WHITE")
ESPDEPRECATED("Use Color::WHITE instead of COLOR_WHITE", "v1.21")
static const Color COLOR_WHITE(255, 255, 255, 255);
} // namespace esphome
+1 -1
View File
@@ -17,7 +17,7 @@
#endif
#define HOT __attribute__((hot))
#define ESPDEPRECATED(msg) __attribute__((deprecated(msg)))
#define ESPDEPRECATED(msg, when) __attribute__((deprecated(msg)))
#define ALWAYS_INLINE __attribute__((always_inline))
#define PACKED __attribute__((packed))