es519xx: Fix incorrect packet size, and a typo.
This commit is contained in:
parent
72e1672fc9
commit
93d719cde6
|
@ -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);
|
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)
|
float *floatval, struct sr_datafeed_analog *analog, void *info)
|
||||||
{
|
{
|
||||||
struct es519xx_info *info_local;
|
struct es519xx_info *info_local;
|
||||||
|
|
|
@ -200,7 +200,7 @@ SR_PRIV int sr_es51922_parse(const uint8_t *buf, float *floatval,
|
||||||
|
|
||||||
/*--- hardware/common/dmm/es519xx.c -----------------------------------------*/
|
/*--- hardware/common/dmm/es519xx.c -----------------------------------------*/
|
||||||
|
|
||||||
#define ES519XX_11B_PACKET_SIZE (2 * 11)
|
#define ES519XX_11B_PACKET_SIZE 11
|
||||||
#define ES519XX_14B_PACKET_SIZE 14
|
#define ES519XX_14B_PACKET_SIZE 14
|
||||||
|
|
||||||
struct es519xx_info {
|
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,
|
SR_PRIV int sr_es519xx_2400_11b_parse(const uint8_t *buf, float *floatval,
|
||||||
struct sr_datafeed_analog *analog, void *info);
|
struct sr_datafeed_analog *analog, void *info);
|
||||||
SR_PRIV gboolean sr_es519xx_19200_11b_5digits_packet_valid(const uint8_t *buf);
|
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);
|
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 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,
|
SR_PRIV int sr_es519xx_19200_11b_clamp_parse(const uint8_t *buf,
|
||||||
|
|
Loading…
Reference in New Issue