Fix product length verification since it may vary in the end

This commit is contained in:
Simon Stürz 2022-02-17 17:52:51 +01:00
parent 56b0036cca
commit bcd243d83e

View File

@ -35,7 +35,7 @@ KebaProductInfo::KebaProductInfo(const QString &productString) :
m_productString(productString) m_productString(productString)
{ {
qCDebug(dcKeba()) << "Parsing product information from" << productString.count() << productString; qCDebug(dcKeba()) << "Parsing product information from" << productString.count() << productString;
if (m_productString.count() != 22) { if (m_productString.count() < 19) {
qCWarning(dcKeba()) << "Invalid product information string size for" << productString << ". Cannot parse."; qCWarning(dcKeba()) << "Invalid product information string size for" << productString << ". Cannot parse.";
m_isValid = false; m_isValid = false;
return; return;