From: Uwe Hermann Date: Fri, 26 Apr 2013 17:56:02 +0000 (+0200) Subject: common/dmm: Drop obsolete *is_packet_start() functions. X-Git-Tag: dsupstream~58 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7381251e33611b6c06f3adedfcf2e1943453670e;p=libsigrok.git common/dmm: Drop obsolete *is_packet_start() functions. --- diff --git a/hardware/common/dmm/fs9721.c b/hardware/common/dmm/fs9721.c index 41b08f71..6a55c716 100644 --- a/hardware/common/dmm/fs9721.c +++ b/hardware/common/dmm/fs9721.c @@ -326,11 +326,6 @@ static void handle_flags(struct sr_datafeed_analog *analog, float *floatval, sr_spew("User-defined LCD symbol 3 is active."); } -SR_PRIV gboolean sr_fs9721_is_packet_start(uint8_t b) -{ - return (((b >> 4) & 0x0f) == 0x01); -} - SR_PRIV gboolean sr_fs9721_packet_valid(const uint8_t *buf) { struct fs9721_info info; diff --git a/libsigrok-internal.h b/libsigrok-internal.h index b16b29a0..6e1cac2d 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -210,7 +210,6 @@ struct fs9922_info { int bargraph_sign, bargraph_value; }; -SR_PRIV gboolean sr_fs9922_is_packet_start(uint8_t b); SR_PRIV gboolean sr_fs9922_packet_valid(const uint8_t *buf); SR_PRIV int sr_fs9922_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info); @@ -226,7 +225,6 @@ struct fs9721_info { gboolean is_c2c1_11, is_c2c1_10, is_c2c1_01, is_c2c1_00, is_sign; }; -SR_PRIV gboolean sr_fs9721_is_packet_start(uint8_t b); SR_PRIV gboolean sr_fs9721_packet_valid(const uint8_t *buf); SR_PRIV int sr_fs9721_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info);