X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fopenbench-logic-sniffer%2Fapi.c;fp=src%2Fhardware%2Fopenbench-logic-sniffer%2Fapi.c;h=4f9ee04f2dcf7d9b0d1d127af604be412083155c;hb=f992151332f79569feaa175f51cc4debabd271dd;hp=792549cb9f6c6cd5f4930c7c3da26317b94d7436;hpb=8c3df6e5cd3d23bf01807e6296f7b7a9f8475902;p=libsigrok.git diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index 792549cb..4f9ee04f 100644 --- a/src/hardware/openbench-logic-sniffer/api.c +++ b/src/hardware/openbench-logic-sniffer/api.c @@ -135,7 +135,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) g_usleep(RESPONSE_DELAY_US); - if (sp_input_waiting(serial->sp_data) == 0) { + if (serial_has_receive_data(serial) == 0) { sr_dbg("Didn't get any reply."); return NULL; } @@ -159,7 +159,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) g_usleep(RESPONSE_DELAY_US); - if (sp_input_waiting(serial->sp_data) != 0) { + if (serial_has_receive_data(serial) != 0) { /* Got metadata. */ sdi = get_metadata(serial); } else {