Index: sources/canbus/messageinterpreter.cpp =================================================================== diff -u -r9d2940c9f09ace35e4e0501a61d46b6bdf789dab -rd07ec81c7002ed2ac60c1dfc3101fb820e88211c --- sources/canbus/messageinterpreter.cpp (.../messageinterpreter.cpp) (revision 9d2940c9f09ace35e4e0501a61d46b6bdf789dab) +++ sources/canbus/messageinterpreter.cpp (.../messageinterpreter.cpp) (revision d07ec81c7002ed2ac60c1dfc3101fb820e88211c) @@ -66,13 +66,10 @@ bool ok = true; vPayload.clear(); int l = vData.length(); - quint8 ix = 0; switch (vActionId) { // notice we are in transmit mode case Gui::GuiActionType::PowerOff: - ix = static_cast(Gui::GuiActionIndx::PowerOff_Response); - if (l >= ix + 1) { - quint8 tmp = vData[ix].toUInt(); - vPayload += tmp; + if (l >= 1) { + vPayload += vData[0].toUInt(); } else { QString mActionIdHexString = Format::toHexString(vActionId); LOG_ERROR(tr("Incorrect data for Message ID (UI) '%1'").arg(mActionIdHexString));