X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fzeroplus-logic-cube%2Fzeroplus.c;h=883f5b49be5ebbda3acb02f0b43757191ab44c48;hb=3010f21c9170e9f235d49bc7b333d17677c70e5c;hp=9892df0f055e16f8a8ad76e860398f6790ba4997;hpb=c73d2ea421c2b425c3f0ae33bce2bfd0c448ca5f;p=libsigrok.git diff --git a/hardware/zeroplus-logic-cube/zeroplus.c b/hardware/zeroplus-logic-cube/zeroplus.c index 9892df0f..883f5b49 100644 --- a/hardware/zeroplus-logic-cube/zeroplus.c +++ b/hardware/zeroplus-logic-cube/zeroplus.c @@ -698,7 +698,7 @@ static int hw_start_acquisition(int device_index, gpointer session_data) } /* This stops acquisition on ALL devices, ignoring device_index. */ -static void hw_stop_acquisition(int device_index, gpointer session_device_id) +static int hw_stop_acquisition(int device_index, gpointer session_device_id) { struct sr_datafeed_packet packet; struct sr_device_instance *sdi; @@ -709,16 +709,18 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id) if (!(sdi = sr_get_device_instance(device_instances, device_index))) { sr_err("zp: %s: sdi was NULL", __func__); - return; /* FIXME */ + return SR_ERR_BUG; } if (!(zp = sdi->priv)) { sr_err("zp: %s: sdi->priv was NULL", __func__); - return; /* FIXME */ + return SR_ERR_BUG; } analyzer_reset(zp->usb->devhdl); /* TODO: Need to cancel and free any queued up transfers. */ + + return SR_OK; } SR_PRIV struct sr_device_plugin zeroplus_logic_cube_plugin_info = {