We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49487b3 commit 21069f4Copy full SHA for 21069f4
1 file changed
examples/utils/arducam.h
@@ -4,6 +4,7 @@
4
#include <Wire.h>
5
#include <SPI.h>
6
#include <ArduCAM.h>
7
+#include <SD.h>
8
9
#define FRAMES_NUM 0x00
10
#define CAM_CS 5
@@ -15,9 +16,7 @@ void buildImageName(char *filename, uint8_t currentImage) {
15
16
// It iterates til we reach a non existent image in order to not override it
17
18
sprintf_P(filename, IMG_NAME, currentImage);
- while (SD.exists(filename)) {
19
- sprintf_P(filename, IMG_NAME, currentImage);
20
- }
+ currentImage ++;
21
}
22
23
bool takePicture(const char *imageName)
0 commit comments