Index: sources/canbus/messageinterpreter.cpp =================================================================== diff -u -rd07ec81c7002ed2ac60c1dfc3101fb820e88211c -r028d387c263ec7d991263db45bebabc27223c379 --- sources/canbus/messageinterpreter.cpp (.../messageinterpreter.cpp) (revision d07ec81c7002ed2ac60c1dfc3101fb820e88211c) +++ sources/canbus/messageinterpreter.cpp (.../messageinterpreter.cpp) (revision 028d387c263ec7d991263db45bebabc27223c379) @@ -65,10 +65,10 @@ { bool ok = true; vPayload.clear(); - int l = vData.length(); + int count = vData.count(); switch (vActionId) { // notice we are in transmit mode case Gui::GuiActionType::PowerOff: - if (l >= 1) { + if (count) { vPayload += vData[0].toUInt(); } else { QString mActionIdHexString = Format::toHexString(vActionId); @@ -83,7 +83,7 @@ // Mentioned in the switch/case to be registered as a valid message. // // Note : added this line to be able to do the Fake Test - if (vData.count()) { + if (count) { vPayload = Format::fromVariant(vData[0]); } break; @@ -95,13 +95,13 @@ break; case Gui::GuiActionType::String: - if (vData.count()) { + if (count) { vPayload = Format::fromVariant(vData[0]); } break; case Gui::GuiActionType::AdjustBloodDialysateReq: - if (vData.count()) { + if (count) { vPayload = Format::fromVariant(vData); } break;