Skip to content

Commit

Permalink
camera capture changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhacks541 committed Dec 14, 2024
1 parent 96ffae7 commit a0aedb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ framework = arduino
upload_protocol = teensy-cli
test_build_src = true
board_build.f_cpu = 24000000L
build_flags = -D VERBOSE -D TEENSY_OPT_SMALLEST_CODE
build_flags = -D VERBOSE -D TEENSY_OPT_SMALLEST_CODE
lib_ldf_mode = deep
monitor_filters = default, log2file

Expand Down
4 changes: 1 addition & 3 deletions src/Control Tasks/CameraControlTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ void CameraControlTask::execute()
Serial.println("Failed to snap!");
#endif
} else {
Serial.print("photo time: ");
Serial.println(millis());
jpglen = adaCam.frameLength();
#ifdef VERBOSE
Serial.println("\n\n\nOptical sensor data captured!\n\n\n");
Expand Down Expand Up @@ -210,13 +208,13 @@ void CameraControlTask::execute()
Serial.println("Done writing file");
#endif
if (sfr::camera::images_written == 1) {
sfr::camera::take_photo = true;
if (!adaCam.resumeVideo()) {
#ifdef VERBOSE
Serial.println("Failed to resume camera frame!");
#endif
sfr::camera::power_setting = (uint8_t)sensor_power_mode_type::off;
} else {
sfr::camera::take_photo = true;
#ifdef VERBOSE
Serial.println("Triggering second activation of optical sensor");
#endif
Expand Down

0 comments on commit a0aedb4

Please sign in to comment.