From: Bartosz Golaszewski Date: Thu, 28 May 2015 13:45:56 +0000 (+0200) Subject: baylibre-acme: Close sysfs files after stopping the acquisition. X-Git-Tag: libsigrok-0.4.0~473 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f9b0ab6b2db8b997a79e0dde37b7240779c76cea;p=libsigrok.git baylibre-acme: Close sysfs files after stopping the acquisition. Add a missing call to dev_acquisition_close() in dev_acquisition_stop(). Signed-off-by: Bartosz Golaszewski --- diff --git a/src/hardware/baylibre-acme/api.c b/src/hardware/baylibre-acme/api.c index c91a9063..75f2c044 100644 --- a/src/hardware/baylibre-acme/api.c +++ b/src/hardware/baylibre-acme/api.c @@ -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);