Fix product length verification since it may vary in the end
This commit is contained in:
parent
56b0036cca
commit
bcd243d83e
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user