Skip to content

Commit cdd670b

Browse files
committed
Fix compilation on esp32
1 parent ae7ad80 commit cdd670b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

EmbAJAX.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
// statics
3232
EmbAJAXOutputDriverBase *EmbAJAXBase::_driver;
3333
char EmbAJAXBase::itoa_buf[ITOA_BUFLEN];
34+
constexpr const char EmbAJAXBase::null_string[1];
3435

3536
////////////////////////////// EmbAJAXOutputDriverBase ////////////////////
3637

EmbAJAX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ template<size_t NUM> friend class EmbAJAXContainer;
9595

9696
static EmbAJAXOutputDriverBase *_driver;
9797
static char itoa_buf[8];
98-
constexpr static char null_string[1] = "";
98+
constexpr static const char null_string[1] = "";
9999

100100
/** Filthy trick to keep (template) implementation out of the header. See EmbAJAXContainer::printChildren() */
101101
void printChildren(EmbAJAXBase** children, size_t num) const;

0 commit comments

Comments
 (0)