Skip to content

Commit 8eaf02e

Browse files
committed
Change to a for loop in test
1 parent f62fab5 commit 8eaf02e

File tree

1 file changed

+1
-3
lines changed
  • obc/examples/test_app_arducam

1 file changed

+1
-3
lines changed

obc/examples/test_app_arducam/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void vTask1(void *pvParameters) {
4848
// Camera Configuration
4949
sciPrintf("Configuring Camera\r\n");
5050
LOG_IF_ERROR_CODE(camConfigureSensor());
51-
while (1) {
51+
for (int i = 0; i < 10; i++) {
5252
// Capture
5353
sciPrintf("Starting Image Capture\r\n");
5454
LOG_IF_ERROR_CODE(startImageCapture(selectedCamera));
@@ -75,8 +75,6 @@ void vTask1(void *pvParameters) {
7575
}
7676
} while (ret == OBC_ERR_CODE_CAMERA_IMAGE_READ_INCOMPLETE);
7777
sciPrintf("\r\n");
78-
79-
break;
8078
}
8179

8280
// Put Camera on standby (gets pretty hot if left powered on for too long)

0 commit comments

Comments
 (0)