From: Uwe Hermann Date: Sat, 1 Dec 2012 19:48:03 +0000 (+0100) Subject: metex14: Add sr_metex14_packet_request(). X-Git-Tag: dsupstream~508 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e90cf076aa6854ad3f312179a121bafc4c6e9a22;p=libsigrok.git metex14: Add sr_metex14_packet_request(). --- diff --git a/hardware/common/dmm/metex14.c b/hardware/common/dmm/metex14.c index c3d9a4f6..7d1cc056 100644 --- a/hardware/common/dmm/metex14.c +++ b/hardware/common/dmm/metex14.c @@ -254,6 +254,15 @@ static gboolean flags_valid(const struct metex14_info *info) return TRUE; } +SR_PRIV int sr_metex14_packet_request(struct sr_serial_dev_inst *serial) +{ + const uint8_t wbuf = 'D'; + + sr_spew("Requesting DMM packet."); + + return (serial_write(serial, &wbuf, 1) == 1) ? SR_OK : SR_ERR; +} + SR_PRIV gboolean sr_metex14_packet_valid(const uint8_t *buf) { struct metex14_info info;