mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 19:08:54 +00:00
V1.0.5
This commit is contained in:
@@ -57,18 +57,18 @@ int test_cap(int argc, char **argv)
|
||||
/* set callback function */
|
||||
rt_device_set_rx_indicate(cap_dev, cap_cb);
|
||||
|
||||
ret = rt_device_control(cap_dev, INPUTCAPTURE_CMD_SET_WATERMARK, &watermark);
|
||||
if (ret != RT_EOK) {
|
||||
rt_kprintf("Failed to set %s device watermark!\n", device_name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = rt_device_open(cap_dev, RT_DEVICE_OFLAG_RDWR);
|
||||
if (ret != RT_EOK) {
|
||||
rt_kprintf("Failed to open %s device!\n", device_name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = rt_device_control(cap_dev, INPUTCAPTURE_CMD_SET_WATERMARK, &watermark);
|
||||
if (ret != RT_EOK) {
|
||||
rt_kprintf("Failed to set %s device watermark!\n", device_name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
rt_kprintf("cap%d open.\n", atoi(argv[1]));
|
||||
|
||||
return RT_EOK;
|
||||
|
||||
Reference in New Issue
Block a user