From: v1ne Date: Tue, 23 Feb 2021 21:36:33 +0000 (+0100) Subject: ols: Don't silently ignore error when setting up the device X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=74e28c06c0a8cbc8bfe6c466a53806235e69925c;p=libsigrok.git ols: Don't silently ignore error when setting up the device --- diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index 426d253a..788d4b80 100644 --- a/src/hardware/openbench-logic-sniffer/api.c +++ b/src/hardware/openbench-logic-sniffer/api.c @@ -419,10 +419,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) /* If the device stops sending for longer than it takes to send a byte, * that means it's finished. But wait at least 100 ms to be safe. */ - serial_source_add(sdi->session, serial, G_IO_IN, 100, ols_receive_data, - (struct sr_dev_inst *)sdi); - - return SR_OK; + return serial_source_add(sdi->session, serial, G_IO_IN, 100, + ols_receive_data, (struct sr_dev_inst *)sdi); } static int dev_acquisition_stop(struct sr_dev_inst *sdi)