Implemented legacy icsneoGetTimeStampForMsg() function call.

Signed-off-by: David Rebbe <drebbe@intrepidcs.com>
This commit is contained in:
David Rebbe
2019-04-05 19:09:52 -04:00
parent ec30696110
commit 23c3cc3763
9 changed files with 61 additions and 4 deletions
+2
View File
@@ -28,6 +28,7 @@ bool Decoder::decode(std::shared_ptr<Message>& result, const std::shared_ptr<Pac
// Timestamps are in (multiplier) ns increments since 1/1/2007 GMT 00:00:00.0000
// The resolution (multiplier) depends on the device
result->timestamp *= timestampMultiplier;
result->timestampMultiplier = timestampMultiplier;
result->network = packet->network;
return true;
case Network::Type::CAN:
@@ -43,6 +44,7 @@ bool Decoder::decode(std::shared_ptr<Message>& result, const std::shared_ptr<Pac
// Timestamps are in (multiplier) ns increments since 1/1/2007 GMT 00:00:00.0000
// The resolution (multiplier) depends on the device
result->timestamp *= timestampMultiplier;
result->timestampMultiplier = timestampMultiplier;
result->network = packet->network;
return true;
}