Skip to content

Commit

Permalink
Update LeptonThread.cpp
Browse files Browse the repository at this point in the history
Add to reboot when the camera lost the sync. At least need to insert 0.75sec to reopen the camera.
  • Loading branch information
yyasuda authored and kekiefer committed Dec 20, 2019
1 parent b7aad4d commit a395ef7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions software/raspberrypi_video/LeptonThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a395ef7

Please sign in to comment.