Fix product length verification since it may vary in the end

master
Simon Stürz 2022-02-17 17:52:51 +01:00
parent 56b0036cca
commit bcd243d83e
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ KebaProductInfo::KebaProductInfo(const QString &productString) :
m_productString(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.";
m_isValid = false;
return;