mirror of https://github.com/arendst/Tasmota.git
Merge pull request #17163 from hallard/teleinfo_fix
Teleinfo Fix BBR and EJP detection
This commit is contained in:
commit
dc93d310c9
|
@ -77,7 +77,7 @@ const char kContratName[] PROGMEM =
|
||||||
|
|
||||||
// Received current contract value for legacy, standard mode has in clear text
|
// Received current contract value for legacy, standard mode has in clear text
|
||||||
const char kContratValue[] PROGMEM =
|
const char kContratValue[] PROGMEM =
|
||||||
"|BASE|HC..|EJP.|BBR"
|
"|BASE|HC..|EJP|BBR"
|
||||||
;
|
;
|
||||||
|
|
||||||
// all tariff type for legacy, standard mode has in clear text
|
// all tariff type for legacy, standard mode has in clear text
|
||||||
|
@ -428,7 +428,7 @@ void DataCallback(struct _ValueList * me, uint8_t flags)
|
||||||
// Find the contract index
|
// Find the contract index
|
||||||
for (contrat = CONTRAT_BAS ; contrat < CONTRAT_END ; contrat++) {
|
for (contrat = CONTRAT_BAS ; contrat < CONTRAT_END ; contrat++) {
|
||||||
GetTextIndexed(contrat_value, sizeof(contrat_value), contrat, kContratValue);
|
GetTextIndexed(contrat_value, sizeof(contrat_value), contrat, kContratValue);
|
||||||
if (!strcmp(contrat_value, me->value)) {
|
if (strstr(me->value, contrat_value)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue