From 778566d08032e2394647c56b7594ea8fc9bdb33d Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Wed, 7 Apr 2021 18:52:51 +0300 Subject: [PATCH] debug: not all functions accept flash strings At least right now. These break ArduinoJson serializer and the MQTT client code, since both try to read these as common char ptr --- code/espurna/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/utils.cpp b/code/espurna/utils.cpp index 58b0783a..abe050bf 100644 --- a/code/espurna/utils.cpp +++ b/code/espurna/utils.cpp @@ -79,7 +79,7 @@ const String& getCoreRevision() { } const char* getVersion() { - static const char version[] PROGMEM { + static const char version[] { #if defined(APP_REVISION) APP_VERSION APP_REVISION #else @@ -91,12 +91,12 @@ const char* getVersion() { } const char* getDevice() { - static const char device[] PROGMEM = DEVICE; + static const char device[] = DEVICE; return device; } const char* getManufacturer() { - static const char manufacturer[] PROGMEM = MANUFACTURER; + static const char manufacturer[] = MANUFACTURER; return manufacturer; }