From a395ef78251f7c835e2244805d2e62de3cc53e8f Mon Sep 17 00:00:00 2001 From: Yutaka Yasuda Date: Mon, 31 Dec 2018 14:55:24 +0900 Subject: [PATCH] Update LeptonThread.cpp Add to reboot when the camera lost the sync. At least need to insert 0.75sec to reopen the camera. --- software/raspberrypi_video/LeptonThread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/software/raspberrypi_video/LeptonThread.cpp b/software/raspberrypi_video/LeptonThread.cpp index 6be567d..f0a9886 100644 --- a/software/raspberrypi_video/LeptonThread.cpp +++ b/software/raspberrypi_video/LeptonThread.cpp @@ -41,6 +41,7 @@ void LeptonThread::run() //By polling faster, developers may easily exceed this count, and the down period between frames may then be flagged as a loss of sync if(resets == 750) { SpiClosePort(0); + lepton_reboot(); usleep(750000); SpiOpenPort(0); }