]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/utils/sendburst_rtl.c
Change to CAN_MSG_VERSION_2 and elimination of linux/*.h headers from user space...
[lincan.git] / lincan / utils / sendburst_rtl.c
index 94a3e0480a79a61fe8c2dc267e874d178f1d6716..44ba8bcecb61d779c44ac59ae3d5bcc58393c04c 100644 (file)
@@ -54,7 +54,11 @@ void sendburst_cleanup(void *arg)
 
 int sendburst_main(void *arg)
 {
+       #ifdef CAN_MSG_VERSION_2
+       struct canmsg_t sendmsg={0,0,5,{0,0},8,{1,2,3,4,5,6,7,8}};
+       #else /* CAN_MSG_VERSION_2 */
        struct canmsg_t sendmsg={0,0,5,0,8,{1,2,3,4,5,6,7,8}};
+       #endif /* CAN_MSG_VERSION_2 */
        int fd, ret,i,j;