From 74930eeed1357f592660e12f76ddcc2f54f93245 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 2 May 2021 21:00:01 +0200 Subject: [PATCH] PROGMEM for ESP8266 crash with strstr --- tasmota/xnrg_15_teleinfo.ino | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tasmota/xnrg_15_teleinfo.ino b/tasmota/xnrg_15_teleinfo.ino index d6ddaa624..75eef09a8 100755 --- a/tasmota/xnrg_15_teleinfo.ino +++ b/tasmota/xnrg_15_teleinfo.ino @@ -141,12 +141,12 @@ const char kLabel[] PROGMEM = // Blacklisted label from telemetry // Each label shoud be enclosed by pipe -#ifdef ESP8266 -// dclared as progmem for ESP8266 crash on strstr -const char kLabelBlacklist[] = -#else -const char kLabelBlacklist[] PROGMEM = +const char kLabelBlacklist[] +// declared as progmem for ESP8266 just crash and reset on strstr() +#ifndef ESP8266 +PROGMEM #endif + = "|PJOURF+1" "|MSG1" "|" @@ -843,7 +843,6 @@ Output : - Comments: - ====================================================================== */ //#define MEASURE_PERF // Define to enable performance measurments - void TInfoProcess(void) { static char buff[TELEINFO_PROCESS_BUFFER];