]> sigrok.org Git - libsigrok.git/commitdiff
saleae-logic-pro: Use sr_dev_acquisition_stop() wrapper.
authorUwe Hermann <redacted>
Mon, 17 Jul 2017 06:25:27 +0000 (08:25 +0200)
committerUwe Hermann <redacted>
Mon, 17 Jul 2017 09:26:12 +0000 (11:26 +0200)
src/hardware/saleae-logic-pro/api.c

index a7cd83d73b43a41f696d529c84a580c74a708c70..c981931546d298e84adce24710b2486d7ccbe2ae 100644 (file)
@@ -395,8 +395,6 @@ static void dev_acquisition_abort(const struct sr_dev_inst *sdi)
        }
 }
 
-static int dev_acquisition_stop(struct sr_dev_inst *sdi);
-
 static int dev_acquisition_handle(int fd, int revents, void *cb_data)
 {
        struct sr_dev_inst *sdi = cb_data;
@@ -409,7 +407,7 @@ static int dev_acquisition_handle(int fd, int revents, void *cb_data)
 
        /* Handle timeout */
        if (!revents)
-               dev_acquisition_stop(sdi);
+               sr_dev_acquisition_stop(sdi);
 
        return TRUE;
 }