Fixed bugs related to scripting and UDS, implemented more scripting

functionality for ISOTP and UDS
This commit is contained in:
Collin Kidder
2017-08-23 21:51:28 -04:00
parent 7550d04705
commit bfd0439a69
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -169,12 +169,14 @@ void UDS_HANDLER::gotISOTPFrame(ISOTP_MESSAGE msg)
}
else return;
udsMsg.data = msg.data.mid(2, -1); //don't copy error byte nor service byte
udsMsg.len -= 2; //and remove those bytes from the length reported too.
}
else
{
udsMsg.isErrorReply = false;
if (msg.data.length() > 1) udsMsg.subFunc = msg.data.at(1);
udsMsg.data = msg.data.mid(1, -1); //don't copy service byte
udsMsg.len -= 1; //and remove service byte from length too.
}
}
else return;