We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c22163 commit c66d67dCopy full SHA for c66d67d
wled00/wled_metadata.cpp
@@ -1,5 +1,6 @@
1
#include "ota_update.h"
2
#include "wled.h"
3
+#include "wled_metadata.h"
4
5
#ifndef WLED_VERSION
6
#warning WLED_VERSION was not set - using default value of 'dev'
@@ -14,9 +15,8 @@
14
15
#define WLED_REPO "unknown"
16
#endif
17
-#define WLED_CUSTOM_DESC_MAGIC 0x57535453 // "WSTS" (WLED System Tag Structure)
18
-#define WLED_CUSTOM_DESC_VERSION 1
19
-#define WLED_RELEASE_NAME_MAX_LEN 48
+constexpr uint32_t WLED_CUSTOM_DESC_MAGIC = 0x57535453; // "WSTS" (WLED System Tag Structure)
+constexpr uint32_t WLED_CUSTOM_DESC_VERSION = 1;
20
21
// Compile-time validation that release name doesn't exceed maximum length
22
static_assert(sizeof(WLED_RELEASE_NAME) <= WLED_RELEASE_NAME_MAX_LEN,
0 commit comments