From 93d719cde6dbd3cc79b035b223e5a0d4ab5926cb Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 7 Oct 2013 00:24:44 +0200 Subject: [PATCH] es519xx: Fix incorrect packet size, and a typo. --- hardware/common/dmm/es519xx.c | 2 +- libsigrok-internal.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hardware/common/dmm/es519xx.c b/hardware/common/dmm/es519xx.c index 35aaf489..0a0a2231 100644 --- a/hardware/common/dmm/es519xx.c +++ b/hardware/common/dmm/es519xx.c @@ -669,7 +669,7 @@ SR_PRIV gboolean sr_es519xx_19200_11b_5digits_packet_valid(const uint8_t *buf) return sr_es519xx_packet_valid(buf, &info); } -SR_PRIV int sr_es519xx_19200_11b_5difits_parse(const uint8_t *buf, +SR_PRIV int sr_es519xx_19200_11b_5digits_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info) { struct es519xx_info *info_local; diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 51780c2d..2c2cccf4 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -200,7 +200,7 @@ SR_PRIV int sr_es51922_parse(const uint8_t *buf, float *floatval, /*--- hardware/common/dmm/es519xx.c -----------------------------------------*/ -#define ES519XX_11B_PACKET_SIZE (2 * 11) +#define ES519XX_11B_PACKET_SIZE 11 #define ES519XX_14B_PACKET_SIZE 14 struct es519xx_info { @@ -221,7 +221,7 @@ SR_PRIV gboolean sr_es519xx_2400_11b_packet_valid(const uint8_t *buf); SR_PRIV int sr_es519xx_2400_11b_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info); SR_PRIV gboolean sr_es519xx_19200_11b_5digits_packet_valid(const uint8_t *buf); -SR_PRIV int sr_es519xx_19200_11b_5difits_parse(const uint8_t *buf, +SR_PRIV int sr_es519xx_19200_11b_5digits_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info); SR_PRIV gboolean sr_es519xx_19200_11b_clamp_packet_valid(const uint8_t *buf); SR_PRIV int sr_es519xx_19200_11b_clamp_parse(const uint8_t *buf,