]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/scpi_serial.c
Route sr_source_remove for all serial devices through a wrapper.
[libsigrok.git] / hardware / common / scpi_serial.c
index 5c07c43c6fb5cbae6b6a552d77b2d07898f6903d..6c5415c5daeb26ea2693359025f7706c3326b97d 100644 (file)
@@ -60,7 +60,7 @@ SR_PRIV int scpi_serial_source_remove(void *priv)
 {
        struct sr_serial_dev_inst *serial = priv;
 
-       return sr_source_remove(serial->fd);
+       return serial_source_remove(serial);
 }
 
 SR_PRIV int scpi_serial_send(void *priv, const char *command)