File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ framework = arduino
55upload_protocol = teensy-cli
66test_build_src = true
77board_build.f_cpu = 24000000L
8- build_flags = -D VERBOSE -D TEENSY_OPT_SMALLEST_CODE
8+ build_flags = -D VERBOSE -D TEENSY_OPT_SMALLEST_CODE
99lib_ldf_mode = deep
1010monitor_filters = default, log2file
1111
Original file line number Diff line number Diff 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\n Optical 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
You can’t perform that action at this time.
0 commit comments