From 2995e8e5da0b272bf46cdab4094c69055566d8bd Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 27 Jan 2023 21:56:16 -0500 Subject: [PATCH] added debug_camera --- cubesatsim/cubesatsim.ino | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 73e9345b..357ca9ec 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -75,7 +75,7 @@ MQTTClient client; byte green_led_counter = 0; char call[] = "AMSAT"; // put your callsign here -extern bool get_camera_image(); +extern bool get_camera_image(bool debug); extern bool start_camera(); void setup() { @@ -253,7 +253,7 @@ void loop() { load_sstv_image_1_as_cam_dot_jpg(); first_time_sstv = false; } else { - if (camera_detected = get_camera_image()) { + if (camera_detected = get_camera_image(debug_camera)) { Serial.println("Getting image file"); // Serial.println("Got image file"); // char camera_file[] = "/cam.jpg"; @@ -4277,10 +4277,14 @@ void serial_input() { break; case 'c': - case 'C': Serial.println("Change the CALLSIGN"); prompt = PROMPT_CALLSIGN; break; + + case 'C': + Serial.println("Debug camera"); + debug_camera = true; + break; case 't': case 'T':