Fixed detection of sagemcom

This commit is contained in:
Gunnar Skjold
2022-04-14 08:18:51 +02:00
parent a0d3632fd7
commit 1f7e43256a

View File

@@ -158,7 +158,7 @@ IEC6205675::IEC6205675(const char* d, uint8_t useMeterType, MeterConfig* meterCo
}
// Try system title
if(meterType == AmsTypeUnknown && hc != NULL) {
if(memcmp(hc->system_title, "SAGY", 4)) {
if(memcmp(hc->system_title, "SAGY", 4) == 0) {
meterType = AmsTypeSagemcom;
}
}