]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/utils/sendburst_rtl.c
Structured comments updated.
[lincan.git] / lincan / utils / sendburst_rtl.c
index 45a69fd16b9627f9585522e85a77b3582d14cfad..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;
 
 
@@ -115,5 +119,8 @@ int init_module(void) {
 }
 
 void cleanup_module(void) {
-        pthread_delete_np (t1);
+        /*pthread_delete_np (t1);*/
+       
+       pthread_cancel(t1);
+       pthread_join(t1, NULL);
 }