X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fopenbench-logic-sniffer%2Fapi.c;h=4f9ee04f2dcf7d9b0d1d127af604be412083155c;hb=5ada72fc0a423fe1b525f14132bfc3f8ae03c95d;hp=792549cb9f6c6cd5f4930c7c3da26317b94d7436;hpb=271392d9690b941a764bebd1e657beef3d45ec6f;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 {