Proper detection for RTR CAN frames

pull/4/head
Paul Hollinsky 2018-10-22 18:25:01 -04:00
parent 8044488bed
commit bc91796d15
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ bool Decoder::decode(std::shared_ptr<Message>& result, const std::shared_ptr<Pac
// Data
// The first 8 bytes are always in the standard place
if(data->dlc.RTR) { // Remote Request Frame
if((data->dlc.RTR && data->header.IDE) || (!data->header.IDE && data->header.SRR)) { // Remote Request Frame
msg->data.resize(length); // This data will be all zeros, but the length will be set
msg->isRemote = true;
} else {