From d6d49cbdb2ccd7a09ec6103f1a221651368ad357 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 16 Jul 2013 15:48:58 +0200 Subject: Support 4MPix sensor in IPECamera --- ipecamera/private.h | 3 ++- ipecamera/reader.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ipecamera') diff --git a/ipecamera/private.h b/ipecamera/private.h index e43c98b..0f62d5a 100644 --- a/ipecamera/private.h +++ b/ipecamera/private.h @@ -19,7 +19,8 @@ #define IPECAMERA_NOFRAME_SLEEP 100 #define IPECAMERA_NOFRAME_PREPROC_SLEEP 100 -#define IPECAMERA_MAX_LINES 1088 +//#define IPECAMERA_MAX_LINES 1088 +#define IPECAMERA_MAX_LINES 2048 #define IPECAMERA_EXPECTED_STATUS_4 0x08409FFFF #define IPECAMERA_EXPECTED_STATUS 0x08449FFFF diff --git a/ipecamera/reader.c b/ipecamera/reader.c index c11bb9d..af99fb5 100644 --- a/ipecamera/reader.c +++ b/ipecamera/reader.c @@ -129,7 +129,7 @@ static int ipecamera_data_callback(void *user, pcilib_dma_flags_t flags, size_t #endif /* IPECAMERA_DEBUG_RAW_PACKETS */ if (invalid_frame_id != ctx->event_id) { - pcilib_warning("Invalid DMA packets received, first is %u bytes long, current event %lu", bufsize, ctx->event_id); + pcilib_warning("No frame magic in DMA packet of %u bytes, current event %lu", bufsize, ctx->event_id); invalid_frame_id = ctx->event_id; } -- cgit v1.2.3