]> sigrok.org Git - libsigrok.git/blobdiff - hardware/uni-t-ut32x/protocol.c
Add struct sr_session parameter to all session source backends.
[libsigrok.git] / hardware / uni-t-ut32x / protocol.c
index 95323a67f8c77e9a16008c6d59188fc7213a220e..65cb756bd87774dc4b275d5673710507d9654d94 100644 (file)
@@ -203,6 +203,7 @@ SR_PRIV int uni_t_ut32x_handle_events(int fd, int revents, void *cb_data)
 
        (void)fd;
        (void)revents;
+
        drvc = di->priv;
 
        if (!(sdi = cb_data))
@@ -216,7 +217,7 @@ SR_PRIV int uni_t_ut32x_handle_events(int fd, int revents, void *cb_data)
                        NULL);
 
        if (sdi->status == SR_ST_STOPPING) {
-               usb_source_remove(drvc->sr_ctx);
+               usb_source_remove(sdi->session, drvc->sr_ctx);
                packet.type = SR_DF_END;
                sr_session_send(cb_data, &packet);