From cfb66aec8d7501613cab834e533a0ca4f49960e7 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 28 Jan 2023 09:41:54 -0500 Subject: [PATCH] added PROMPT_CAMERA to debug camera right away --- cubesatsim/cubesatsim.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 9b19ca7e..8f247f1b 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -4301,7 +4301,8 @@ void serial_input() { case 'C': Serial.println("Debug camera"); - debug_camera = true; + debug_camera = true; + prompt = PROMPT_CAMERA; break; case 't': @@ -4491,6 +4492,10 @@ void prompt_for_input() { payload_command = PAYLOAD_QUERY; break; + case PROMPT_CAMERA: + get_camera_image(debug_camera); + break; + case PROMPT_TEMP: sensorValue = analogRead(TEMPERATURE_PIN); Serial.print("Raw diode voltage: ");