From dd7a4a71caf4a0c0a7d2a24b780cbdffd6602621 Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Mon, 7 Sep 2015 14:33:30 +0200 Subject: [PATCH] drivers: Match dummy FD passed to source add/remove --- src/hardware/asix-sigma/asix-sigma.c | 2 +- src/hardware/brymen-bm86x/api.c | 2 +- src/hardware/pipistrello-ols/api.c | 2 +- src/hardware/uni-t-dmm/api.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; }