Skip to content

Commit

Permalink
Simplify build image
Browse files Browse the repository at this point in the history
  • Loading branch information
carrascoacd committed Dec 13, 2019
1 parent 49487b3 commit 21069f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/utils/arducam.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <Wire.h>
#include <SPI.h>
#include <ArduCAM.h>
#include <SD.h>

#define FRAMES_NUM 0x00
#define CAM_CS 5
Expand All @@ -15,9 +16,7 @@ void buildImageName(char *filename, uint8_t currentImage) {
// It iterates til we reach a non existent image in order to not override it

sprintf_P(filename, IMG_NAME, currentImage);
while (SD.exists(filename)) {
sprintf_P(filename, IMG_NAME, currentImage);
}
currentImage ++;
}

bool takePicture(const char *imageName)
Expand Down

0 comments on commit 21069f4

Please sign in to comment.