Skip to content

Commit

Permalink
Call lepton_reset in recovery code.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader committed Mar 14, 2019
1 parent 39685fb commit 44ee992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omv/lepton.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static int snapshot(sensor_t *sensor, image_t *image, streaming_cb_t streaming_c
// The FLIR lepton might have crashed so reset it (it does this).
bool temp_h_mirror = h_mirror;
bool temp_v_flip = v_flip;
int ret = reset(sensor);
int ret = lepton_reset(sensor, measurement_mode);
h_mirror = temp_h_mirror;
v_flip = temp_v_flip;

Expand Down

0 comments on commit 44ee992

Please sign in to comment.