CanRxFrame inherits CanFrame

This commit is contained in:
Pavel Kirienko
2014-02-02 22:58:44 +04:00
parent 8794c7eab9
commit 6790b04056
5 changed files with 8 additions and 8 deletions
@@ -15,9 +15,8 @@
namespace uavcan
{
struct CanRxFrame
struct CanRxFrame : public CanFrame
{
CanFrame frame;
uint64_t timestamp;
uint8_t iface_index;
@@ -137,7 +137,7 @@ struct RxFrame
bool parse(const CanRxFrame& can_frame)
{
if (!frame.parse(can_frame.frame))
if (!frame.parse(can_frame))
return false;
timestamp = can_frame.timestamp;
iface_index = can_frame.iface_index;