projects
/
yn
/
alarmmonitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95bc3df
)
优化手势识别,解决红外补光灯在开启rbg相机时不关闭的问题
author
zf zf
<2919300294@qq.com>
Mon, 3 Jul 2023 02:47:16 +0000
(10:47 +0800)
committer
zf zf
<2919300294@qq.com>
Mon, 3 Jul 2023 02:47:16 +0000
(10:47 +0800)
app/src/device_gesture.c
patch
|
blob
|
history
diff --git
a/app/src/device_gesture.c
b/app/src/device_gesture.c
index fd96e9a7034dd4985ea3bf9a9f29710da288e206..2a99e9d9fa7c819ecbf2ef9ee1c45014057203cc 100644
(file)
--- a/
app/src/device_gesture.c
+++ b/
app/src/device_gesture.c
@@
-253,6
+253,8
@@
static int32_t gr_als_t(gr_ctrl_t *gr_ctrl)
last_als_status = gr_info->status;
if (last_als_status == BRIGHT)
{
+ ir_led_on(gr_ctrl->light_ctrl, 10);
+ usleep(200*1000);
ir_led_off(gr_ctrl->light_ctrl); // 禁用红外补光
camera_id = 1;
printf("开启rgb,禁止ir\n");