]> sigrok.org Git - libsigrok.git/commitdiff
es519xx: Fix incorrect packet size, and a typo.
authorUwe Hermann <redacted>
Sun, 6 Oct 2013 22:24:44 +0000 (00:24 +0200)
committerUwe Hermann <redacted>
Sun, 6 Oct 2013 22:36:18 +0000 (00:36 +0200)
hardware/common/dmm/es519xx.c
libsigrok-internal.h

index 35aaf489f457e4ea9aea768fa3e877de7132af45..0a0a2231e64723c83f657a55794676559d06af58 100644 (file)
@@ -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;
index 51780c2dc9e7b3f975f9ee3994e64f0a090432ab..2c2cccf40ec5530113164b5c83b716636c77c635 100644 (file)
@@ -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,