From 72abd0380ce84dc86f5d16b16189720bc7c946dd Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 15 Dec 2022 11:16:30 -0500 Subject: [PATCH] fixed sleep print --- .../esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino index 79aafa37..7706d9dd 100644 --- a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino +++ b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino @@ -254,7 +254,9 @@ void loop() { if (digitalRead(13) == HIGH) { sleep_cam = true; // only sleep if GPIO13 is High on boot - Serial.println("\nGPIO13 is LOW, so don't sleep"); + Serial.println("\nGPIO13 is HIGH, so will sleep"); + } else { + Serial.println("\nGPIO13 is LOW, so dont' sleep"); } bool timeout = false;