Revert "自定义的打印信息"
authorzwj <645281962@qq.com>
Wed, 24 May 2023 03:58:32 +0000 (11:58 +0800)
committerzwj <645281962@qq.com>
Wed, 24 May 2023 03:58:32 +0000 (11:58 +0800)
This reverts commit 23c702faffb9166a5fb23019ea545f731a7be8bb.

tof/src/tof.c

index cdd7a5d0e2eaa324031ba9cb53103051a6a48015..c1b661bf5354b9ffcfd150c22f16f4d1c82841ad 100644 (file)
@@ -2134,7 +2134,6 @@ void* tof_task(void* data)
                        if(my_info->status != TOF_ANYBODY){
                                my_info->distance = range;
                                my_info->status = TOF_ANYBODY;
-                               printf("you ren\n");
                                if(tof_event != NULL){
                                        tof_event(my_info);
                                }
@@ -2144,7 +2143,6 @@ void* tof_task(void* data)
                        if(my_info->status != TOF_NOBODY){
                                my_info->distance = range;
                                my_info->status = TOF_NOBODY;
-                               printf("wu ren\n");
                                if(tof_event != NULL){
                                        tof_event(my_info);
                                }
@@ -2161,7 +2159,6 @@ void* tof_task(void* data)
                                        my_info->distance = range1;
                                        my_info->status = TOF_FIXED_BARRIER;
                                        distanceThreshold = range1;
-                                       printf("zhang ai wu\n");
                                        if(tof_event != NULL){
                                                tof_event(my_info);
                                        }
@@ -2241,7 +2238,6 @@ error:
 void mg_tof_close( mg_tof_t * tof_ctrl )
 {
        stop = 0;
-       usleep(30);
        mg_tof_disable(NULL);
        free(my_tof);
        free(my_info);