From: Daniel Elstner Date: Mon, 7 Sep 2015 12:33:30 +0000 (+0200) Subject: drivers: Match dummy FD passed to source add/remove X-Git-Tag: libsigrok-0.4.0~344 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dd7a4a71caf4a0c0a7d2a24b780cbdffd6602621;p=libsigrok.git drivers: Match dummy FD passed to source add/remove --- diff --git a/src/hardware/asix-sigma/asix-sigma.c b/src/hardware/asix-sigma/asix-sigma.c index c75fdffb..0eaaf976 100644 --- a/src/hardware/asix-sigma/asix-sigma.c +++ b/src/hardware/asix-sigma/asix-sigma.c @@ -1533,7 +1533,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) devc = sdi->priv; devc->state.state = SIGMA_IDLE; - sr_session_source_remove(sdi->session, 0); + sr_session_source_remove(sdi->session, -1); return SR_OK; } diff --git a/src/hardware/brymen-bm86x/api.c b/src/hardware/brymen-bm86x/api.c index 5edc8383..b2fae554 100644 --- a/src/hardware/brymen-bm86x/api.c +++ b/src/hardware/brymen-bm86x/api.c @@ -283,7 +283,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) packet.type = SR_DF_END; sr_session_send(sdi, &packet); - sr_session_source_remove(sdi->session, 0); + sr_session_source_remove(sdi->session, -1); return SR_OK; } diff --git a/src/hardware/pipistrello-ols/api.c b/src/hardware/pipistrello-ols/api.c index 2c0313ba..03cda60b 100644 --- a/src/hardware/pipistrello-ols/api.c +++ b/src/hardware/pipistrello-ols/api.c @@ -713,7 +713,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) write_shortcommand(devc, CMD_RESET); write_shortcommand(devc, CMD_RESET); - sr_session_source_remove(sdi->session, 0); + sr_session_source_remove(sdi->session, -1); /* Send end packet to the session bus. */ sr_dbg("Sending SR_DF_END."); diff --git a/src/hardware/uni-t-dmm/api.c b/src/hardware/uni-t-dmm/api.c index 199ad6b5..b92d5d14 100644 --- a/src/hardware/uni-t-dmm/api.c +++ b/src/hardware/uni-t-dmm/api.c @@ -220,7 +220,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) packet.type = SR_DF_END; sr_session_send(sdi, &packet); - sr_session_source_remove(sdi->session, 0); + sr_session_source_remove(sdi->session, -1); return SR_OK; }