summaryrefslogtreecommitdiffstats
path: root/dma/ipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'dma/ipe.c')
-rw-r--r--dma/ipe.c6
1 files changed, 5 insertions, 1 deletions
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;