X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fnorma-dmm%2Fapi.c;h=ed8378ca231b46faa2f982a3d6e61a9ee27fdef2;hb=abc4b3356d184401cb62aaa521d1c80ebd7d6f0f;hp=6523e93a8276bea60fb93bcc6264f95e7ba6c6d0;hpb=b4936bae0a4b2e8527324416faf81704e53216d2;p=libsigrok.git diff --git a/hardware/norma-dmm/api.c b/hardware/norma-dmm/api.c index 6523e93a..ed8378ca 100644 --- a/hardware/norma-dmm/api.c +++ b/hardware/norma-dmm/api.c @@ -293,7 +293,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, /* Poll every 100ms, or whenever some data comes in. */ serial = sdi->conn; - sr_source_add(serial->fd, G_IO_IN, 100, norma_dmm_receive_data, + serial_source_add(serial, G_IO_IN, 100, norma_dmm_receive_data, (void *)sdi); return SR_OK;