X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fbinding%2Flow-can-hat.cpp;fp=low-can-binding%2Fbinding%2Flow-can-hat.cpp;h=7258074424135eb7a5f56b0b79a600fbe9dbee0f;hb=744d95cffe1241c97d922b18f6e3723fff7d64fe;hp=7e0d94a429026703349eb9f123a4bc66225a84a9;hpb=e28ae5f481c3a0d78bb7d6c21416dc38be541a4d;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/binding/low-can-hat.cpp b/low-can-binding/binding/low-can-hat.cpp index 7e0d94a4..72580744 100644 --- a/low-can-binding/binding/low-can-hat.cpp +++ b/low-can-binding/binding/low-can-hat.cpp @@ -74,7 +74,11 @@ int read_message(sd_event_source *event_source, int fd, uint32_t revents, void * if (message->get_id() && message->get_length() && ! (message->get_flags() & INVALID_FLAG) ) + { + if(can_subscription->get_signal() != nullptr && can_subscription->get_signal()->get_message()->get_flags() & BYTE_FRAME_IS_BIG_ENDIAN) + message->frame_swap(); push_n_notify(message); + } } } }