Skip to content

Commit a0aedb4

Browse files
committed
camera capture changes
1 parent 96ffae7 commit a0aedb4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework = arduino
55
upload_protocol = teensy-cli
66
test_build_src = true
77
board_build.f_cpu = 24000000L
8-
build_flags = -D VERBOSE -D TEENSY_OPT_SMALLEST_CODE
8+
build_flags = -D VERBOSE -D TEENSY_OPT_SMALLEST_CODE
99
lib_ldf_mode = deep
1010
monitor_filters = default, log2file
1111

src/Control Tasks/CameraControlTask.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ void CameraControlTask::execute()
161161
Serial.println("Failed to snap!");
162162
#endif
163163
} else {
164-
Serial.print("photo time: ");
165-
Serial.println(millis());
166164
jpglen = adaCam.frameLength();
167165
#ifdef VERBOSE
168166
Serial.println("\n\n\nOptical sensor data captured!\n\n\n");
@@ -210,13 +208,13 @@ void CameraControlTask::execute()
210208
Serial.println("Done writing file");
211209
#endif
212210
if (sfr::camera::images_written == 1) {
213-
sfr::camera::take_photo = true;
214211
if (!adaCam.resumeVideo()) {
215212
#ifdef VERBOSE
216213
Serial.println("Failed to resume camera frame!");
217214
#endif
218215
sfr::camera::power_setting = (uint8_t)sensor_power_mode_type::off;
219216
} else {
217+
sfr::camera::take_photo = true;
220218
#ifdef VERBOSE
221219
Serial.println("Triggering second activation of optical sensor");
222220
#endif

0 commit comments

Comments
 (0)