From 4018e1673cf6ebfed3ef0c29208c7a94dc2043b5 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Fri, 2 Feb 2018 21:33:31 +1030 Subject: [PATCH] Fix black-image crash issue on shssp2018 code. --- tx/shssp2018.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tx/shssp2018.py b/tx/shssp2018.py index 86c5414..6d6020d 100644 --- a/tx/shssp2018.py +++ b/tx/shssp2018.py @@ -164,6 +164,9 @@ try: if picam_capture_success: picam_ssdv_filename = picam.ssdvify(vis_capture_filename, image_id = image_id) + if picam_ssdv_filename == "FAIL": + tx.transmit_text_message("Error capturing image, continuing.") + continue # Wait until the transmit queue is empty before pushing in packets. tx.transmit_text_message("Waiting for SSDV TX queue to empty.")