From: Uwe Hermann Date: Sun, 6 Oct 2013 22:24:44 +0000 (+0200) Subject: es519xx: Fix incorrect packet size, and a typo. X-Git-Tag: libsigrok-0.2.2~44 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=93d719cde6dbd3cc79b035b223e5a0d4ab5926cb;p=libsigrok.git es519xx: Fix incorrect packet size, and a typo. --- 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,