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=792549cb9f6c6cd5f4930c7c3da26317b94d7436;hb=271392d9690b941a764bebd1e657beef3d45ec6f;hp=b0cc3978bf25e8e529f2ca4ea529e4d09679d232;hpb=6213c38ef8f1c38692335869e4052490e48711f9;p=libsigrok.git diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index b0cc3978..792549cb 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 (sp_input_waiting(serial->sp_data) == 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 (sp_input_waiting(serial->sp_data) != 0) { /* Got metadata. */ sdi = get_metadata(serial); } else {