From f83e1d4082d4a7b5802ca665acab088dcea52863 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 28 Jan 2014 12:21:35 +0100 Subject: Properly support triggering with new revision of UFO camera --- ipecamera/ipecamera.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ipecamera/ipecamera.c b/ipecamera/ipecamera.c index 54df33f..605d733 100644 --- a/ipecamera/ipecamera.c +++ b/ipecamera/ipecamera.c @@ -647,11 +647,12 @@ int ipecamera_trigger(pcilib_context_t *vctx, pcilib_event_t event, size_t trigg GET_REG(status3_reg, value); } while (value&0x20000000); */ - - SET_REG(control_reg, IPECAMERA_FRAME_REQUEST|IPECAMERA_READOUT_FLAG); + + GET_REG(control_reg, value); + SET_REG(control_reg, value|IPECAMERA_FRAME_REQUEST); usleep(IPECAMERA_WAIT_FRAME_RCVD_TIME); //CHECK_REG(status_reg, IPECAMERA_EXPECTED_STATUS); - SET_REG(control_reg, IPECAMERA_IDLE|IPECAMERA_READOUT_FLAG); + SET_REG(control_reg, value); pcilib_calc_deadline(&ctx->next_trigger, IPECAMERA_NEXT_FRAME_DELAY); -- cgit v1.2.3