X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fopenbench-logic-sniffer%2Fapi.c;h=4f9ee04f2dcf7d9b0d1d127af604be412083155c;hb=5ada72fc0a423fe1b525f14132bfc3f8ae03c95d;hp=b0cc3978bf25e8e529f2ca4ea529e4d09679d232;hpb=f6ce25ec05e8707ee3783b111ea13779f237c3b3;p=libsigrok.git diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index b0cc3978..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->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->data) != 0) { + if (serial_has_receive_data(serial) != 0) { /* Got metadata. */ sdi = get_metadata(serial); } else {