]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hung-chang-dso-2100/api.c
scpi-pps: Add profile for Agilent N5763A 12.5V 120A supply
[libsigrok.git] / src / hardware / hung-chang-dso-2100 / api.c
index 1fd4df0b8e9388f346540ca6fe6af80b50e58559..45fff2bc3b417f411385cbfd3302094d6d1cbcc1 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <ieee1284.h>
 #include <string.h>
 #include "protocol.h"
@@ -714,7 +715,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
 
        std_session_send_df_header(cb_data, LOG_PREFIX);
 
-       sr_session_source_add(sdi->session, 0, 0, 8,
+       sr_session_source_add(sdi->session, -1, 0, 8,
                              hung_chang_dso_2100_poll, (void *)sdi);
 
        return SR_OK;
@@ -729,7 +730,7 @@ SR_PRIV int hung_chang_dso_2100_dev_acquisition_stop(const struct sr_dev_inst *s
                return SR_ERR_DEV_CLOSED;
 
        sr_session_send(cb_data, &packet);
-       sr_session_source_remove(sdi->session, 0);
+       sr_session_source_remove(sdi->session, -1);
 
        hung_chang_dso_2100_move_to(sdi, 1);