]> sigrok.org Git - libsigrok.git/commitdiff
es519xx: restore correct packet size
authorAurelien Jacobs <redacted>
Thu, 10 Oct 2013 21:11:06 +0000 (23:11 +0200)
committerUwe Hermann <redacted>
Sun, 20 Oct 2013 22:35:23 +0000 (00:35 +0200)
libsigrok-internal.h

index 2c2cccf40ec5530113164b5c83b716636c77c635..4b557bbc11e04c99cd6ef6e546c182c39d160345 100644 (file)
@@ -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 {