我注意到在你提供的示例中loopCount初始化设置为0,当g_s32FrameCnt = 1时实际上是VI获取两帧后才关闭相机。
Code: Select all
if ((g_s32FrameCnt >= 0) && (loopCount > g_s32FrameCnt)) {
system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00");
}
Code: Select all
if ((g_s32FrameCnt >= 0) && (loopCount > g_s32FrameCnt)) {
system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00");
}
Code: Select all
if ((g_s32FrameCnt >= 0) && (loopCount > g_s32FrameCnt)) {
system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00");
}