Skip to content

Commit

Permalink
Update Lepton_I2C.cpp
Browse files Browse the repository at this point in the history
Add lepton_reboot().
(No return code check, it will return -26 and it is the sign it works correctly.)
  • Loading branch information
yyasuda authored and kekiefer committed Dec 20, 2019
1 parent 0cf2b20 commit b7aad4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions software/raspberrypi_video/Lepton_I2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "leptonSDKEmb32PUB/LEPTON_SDK.h"
#include "leptonSDKEmb32PUB/LEPTON_SYS.h"
#include "leptonSDKEmb32PUB/LEPTON_OEM.h"
#include "leptonSDKEmb32PUB/LEPTON_Types.h"

bool _connected;
Expand All @@ -22,3 +23,10 @@ void lepton_perform_ffc() {
}

//presumably more commands could go here if desired

void lepton_reboot() {
if(!_connected) {
lepton_connect();
}
LEP_RunOemReboot(&_port);
}

0 comments on commit b7aad4d

Please sign in to comment.