From: Aurelien Jacobs Date: Thu, 10 Oct 2013 21:11:06 +0000 (+0200) Subject: es519xx: restore correct packet size X-Git-Tag: libsigrok-0.2.2~38 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bfb926c1d2e248336dd57a5ab63cf503cb2b00b7;p=libsigrok.git es519xx: restore correct packet size --- diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 2c2cccf4..4b557bbc 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -200,7 +200,11 @@ SR_PRIV int sr_es51922_parse(const uint8_t *buf, float *floatval, /*--- hardware/common/dmm/es519xx.c -----------------------------------------*/ -#define ES519XX_11B_PACKET_SIZE 11 +/** + * All 11-byte es519xx chips repeat each block twice for each conversion cycle + * so always read 2 blocks at a time. + */ +#define ES519XX_11B_PACKET_SIZE (11 * 2) #define ES519XX_14B_PACKET_SIZE 14 struct es519xx_info {