added debug_camera

pico-mitt
alanbjohnston 3 years ago committed by GitHub
parent d12fb3ab30
commit 2995e8e5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -75,7 +75,7 @@ MQTTClient client;
byte green_led_counter = 0; byte green_led_counter = 0;
char call[] = "AMSAT"; // put your callsign here char call[] = "AMSAT"; // put your callsign here
extern bool get_camera_image(); extern bool get_camera_image(bool debug);
extern bool start_camera(); extern bool start_camera();
void setup() { void setup() {
@ -253,7 +253,7 @@ void loop() {
load_sstv_image_1_as_cam_dot_jpg(); load_sstv_image_1_as_cam_dot_jpg();
first_time_sstv = false; first_time_sstv = false;
} else { } else {
if (camera_detected = get_camera_image()) { if (camera_detected = get_camera_image(debug_camera)) {
Serial.println("Getting image file"); Serial.println("Getting image file");
// Serial.println("Got image file"); // Serial.println("Got image file");
// char camera_file[] = "/cam.jpg"; // char camera_file[] = "/cam.jpg";
@ -4277,10 +4277,14 @@ void serial_input() {
break; break;
case 'c': case 'c':
case 'C':
Serial.println("Change the CALLSIGN"); Serial.println("Change the CALLSIGN");
prompt = PROMPT_CALLSIGN; prompt = PROMPT_CALLSIGN;
break; break;
case 'C':
Serial.println("Debug camera");
debug_camera = true;
break;
case 't': case 't':
case 'T': case 'T':

Loading…
Cancel
Save

Powered by TurnKey Linux.