From 23c702faffb9166a5fb23019ea545f731a7be8bb Mon Sep 17 00:00:00 2001 From: zwj <645281962@qq.com> Date: Wed, 24 May 2023 11:50:20 +0800 Subject: [PATCH] =?utf8?q?=E5=9C=A8close=E4=B8=AD=E5=A2=9E=E5=8A=A0?= =?utf8?q?=E5=BB=B6=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tof/src/tof.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tof/src/tof.c b/tof/src/tof.c index c1b661b..cdd7a5d 100644 --- a/tof/src/tof.c +++ b/tof/src/tof.c @@ -2134,6 +2134,7 @@ 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); } @@ -2143,6 +2144,7 @@ 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); } @@ -2159,6 +2161,7 @@ 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); } @@ -2238,6 +2241,7 @@ error: void mg_tof_close( mg_tof_t * tof_ctrl ) { stop = 0; + usleep(30); mg_tof_disable(NULL); free(my_tof); free(my_info); -- 2.34.1