]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/baylibre-acme/api.c
baylibre-acme: Close sysfs files after stopping the acquisition.
[libsigrok.git] / 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);