I am working with the MT9D111 camera and the camera_application demo. When I hit the "start" button, I want to capture a single image and then stop. (not keep uploading images until I hit stop). I tried to accomplish this by setting g_CaptureImage to 0 as seen below, but it doesn't work? This code starts on line 691 of camera_app.c
do { while(g_CaptureImage) { CaptureImage(); if(lRetVal < 0) { LOOP_FOREVER(); } g_CaptureImage = 0; //This as added from original demo code. } }while(1);
But the image still keeps updating? Is something else setting g_CaptureImage to 1? why does it keep capturing images?