Skip to content

Commit c66d67d

Browse files
committed
Fix metadata includes
1 parent 0c22163 commit c66d67d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wled00/wled_metadata.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "ota_update.h"
22
#include "wled.h"
3+
#include "wled_metadata.h"
34

45
#ifndef WLED_VERSION
56
#warning WLED_VERSION was not set - using default value of 'dev'
@@ -14,9 +15,8 @@
1415
#define WLED_REPO "unknown"
1516
#endif
1617

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
18+
constexpr uint32_t WLED_CUSTOM_DESC_MAGIC = 0x57535453; // "WSTS" (WLED System Tag Structure)
19+
constexpr uint32_t WLED_CUSTOM_DESC_VERSION = 1;
2020

2121
// Compile-time validation that release name doesn't exceed maximum length
2222
static_assert(sizeof(WLED_RELEASE_NAME) <= WLED_RELEASE_NAME_MAX_LEN,

0 commit comments

Comments
 (0)