]> sigrok.org Git - libsigrok.git/commitdiff
baylibre-acme: Close sysfs files after stopping the acquisition.
authorBartosz Golaszewski <redacted>
Thu, 28 May 2015 13:45:56 +0000 (15:45 +0200)
committerBartosz Golaszewski <redacted>
Mon, 29 Jun 2015 14:07:59 +0000 (16:07 +0200)
Add a missing call to dev_acquisition_close() in dev_acquisition_stop().

Signed-off-by: Bartosz Golaszewski <redacted>
src/hardware/baylibre-acme/api.c

index c91a9063fdfe949091b5f5a1ce546076f7512eb5..75f2c0446e4f76a94d95e5abe4809b93c7997214 100644 (file)
@@ -393,6 +393,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
        if (sdi->status != SR_ST_ACTIVE)
                return SR_ERR_DEV_CLOSED;
 
+       dev_acquisition_close(sdi);
        sr_session_source_remove_channel(sdi->session, devc->channel);
        g_io_channel_shutdown(devc->channel, FALSE, NULL);
        g_io_channel_unref(devc->channel);