From 92da72774b070ddec0562e05d81ceed340c8efad Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 16 Aug 2017 22:39:05 +0200 Subject: Read DMA version for HighFlex based ipecamera (may break older cameras) --- dma/ipe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dma') diff --git a/dma/ipe.c b/dma/ipe.c index 614d260..64549a8 100644 --- a/dma/ipe.c +++ b/dma/ipe.c @@ -55,7 +55,11 @@ pcilib_dma_context_t *dma_ipe_init(pcilib_t *pcilib, const char *model, const vo ctx->version = IPEDMA_VERSION(version_value); if ((model)&&(!strcasecmp(model, "ipecamera"))) { - ctx->gen = 2; + if (IPEDMA_GENERATION(version_value) > 2) { + ctx->gen = 3; + } else { + ctx->gen = 2; + } } else { if (IPEDMA_GENERATION(version_value) > 2) { ctx->gen = 3; -- cgit v1.2.3