From 4904a43b33bb0d65b73542b4cd39a01860ede07f Mon Sep 17 00:00:00 2001 From: Routmoute <36932590+routmoute@users.noreply.github.com> Date: Wed, 2 Jul 2025 08:44:03 +0200 Subject: [PATCH] fix: teleinfo standard mode crash (#23628) --- tasmota/tasmota_xnrg_energy/xnrg_15_teleinfo.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasmota/tasmota_xnrg_energy/xnrg_15_teleinfo.ino b/tasmota/tasmota_xnrg_energy/xnrg_15_teleinfo.ino index 3b43ac1e7..961bf370e 100644 --- a/tasmota/tasmota_xnrg_energy/xnrg_15_teleinfo.ino +++ b/tasmota/tasmota_xnrg_energy/xnrg_15_teleinfo.ino @@ -454,13 +454,13 @@ void DataCallback(struct _ValueList * me, uint8_t flags) // Contract subscribed (standard is in clear text in value) else if (ilabel == LABEL_NGTF) { - if (strstr(me->value, TELEINFO_STD_CONTRACT_BASE)) { + if (strstr_P(me->value, TELEINFO_STD_CONTRACT_BASE)) { contrat = CONTRAT_BAS; - } else if (strstr(me->value, TELEINFO_STD_CONTRACT_HCHP)) { + } else if (strstr_P(me->value, TELEINFO_STD_CONTRACT_HCHP)) { contrat = CONTRAT_HC; - } else if (strstr(me->value, TELEINFO_STD_CONTRACT_BBR)) { + } else if (strstr_P(me->value, TELEINFO_STD_CONTRACT_BBR)) { contrat = CONTRAT_BBR; - } else if (strstr(me->value, TELEINFO_STD_CONTRACT_EJP)) { + } else if (strstr_P(me->value, TELEINFO_STD_CONTRACT_EJP)) { contrat = CONTRAT_EJP; }