X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fpipistrello-ols%2Fapi.c;h=2c0313ba2bec718dd8cba953e33ecc7526362dc4;hb=c650d3ecbfeea1015df5ca38fa941bcb01254ed8;hp=3c7fc7b1790c0af6e1c37f33d929bb85523631f7;hpb=027bf07796c340509bd2b010021f36a5990e51d0;p=libsigrok.git diff --git a/src/hardware/pipistrello-ols/api.c b/src/hardware/pipistrello-ols/api.c index 3c7fc7b1..2c0313ba 100644 --- a/src/hardware/pipistrello-ols/api.c +++ b/src/hardware/pipistrello-ols/api.c @@ -693,7 +693,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, std_session_send_df_header(cb_data, LOG_PREFIX); /* Hook up a dummy handler to receive data from the device. */ - sr_session_source_add(sdi->session, 0, G_IO_IN, 10, p_ols_receive_data, + sr_session_source_add(sdi->session, -1, 0, 10, p_ols_receive_data, cb_data); return SR_OK;