Free the USB transfers in the reverse order of which they were submitted. This
will avoid that while transfer 0 is canceld transfer 1 is started by the host
controller, and so on.
Reported-by: Peter Stuge
Signed-off-by: Lars-Peter Clausen
---
Sorry, sent an old version of the patch as v1.
---
Free the USB transfers in the reverse order of which they were submitted. This
will avoid that while transfer 0 is canceld transfer 1 is started by the host
controller, and so on.
Reported-by: Peter Stuge
Signed-off-by: Lars-Peter Clausen
---
libsigrok/hardware/fx2lafw/fx2lafw.c |4 ++--
1
Use sr_session_stop() instead of the deprecated sr_session_halt().
Signed-off-by: Lars-Peter Clausen
---
sigrok-qt/mainwindow.cpp |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sigrok-qt/mainwindow.cpp b/sigrok-qt/mainwindow.cpp
index f0ca848..810228f 100644
--- a/sig
Use sr_session_stop() instead of the deprecated sr_session_halt().
Signed-off-by: Lars-Peter Clausen
---
sigrok-cli/sigrok-cli.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sigrok-cli/sigrok-cli.c b/sigrok-cli/sigrok-cli.c
index bce88e4..3a460bf 100644
--- a/sigrok
sr_session_halt() in its current state is kind of useless and even dangerous.
All it will do is mark the session as not running, but wont signal the devices
to stop to capture data. This is not so much of a problem with the blocking
sr_session_run(), but once there is support for asynchronous data
Use sr_session_stop() instead of the deprecated sr_session_halt().
Signed-off-by: Lars-Peter Clausen
---
sigrok-gtk/main.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sigrok-gtk/main.c b/sigrok-gtk/main.c
index 5406b04..9546e1a 100644
--- a/sigrok-gtk/main.c
+++ b/sigr
By cleaning up the driver state all devices will become inaccessible, which
means that is neither possible to query any information from it (like sample
rate) and it is also not possible to restart data acquisition.
sr_session_save() tries to query the sample rate from the device, as a result
call
A device is opened when it is added to a session, in the same fashion it should
be closed again when it is removed from a session.
Also remove all still attached devices from a session when the session is
destroyed.
Signed-off-by: Lars-Peter Clausen
---
libsigrok/session.c | 11 ---
1
8 matches
Mail list logo