X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fscpi-pps%2Fapi.c;h=aa5b945a3349cee0573491709d304efa424ccdc7;hp=ed9fbd9db20661a0c7b472e2741c39a89f17f560;hb=7f0463840ab5d6a85daaa76850558d2b71e596cf;hpb=d822f54d523cf3956c081332f0ef9b427926e058 diff --git a/src/hardware/scpi-pps/api.c b/src/hardware/scpi-pps/api.c index ed9fbd9d..aa5b945a 100644 --- a/src/hardware/scpi-pps/api.c +++ b/src/hardware/scpi-pps/api.c @@ -254,6 +254,17 @@ static GSList *scan_scpi_pps(struct sr_dev_driver *di, GSList *options) static GSList *scan_hpib_pps(struct sr_dev_driver *di, GSList *options) { + const char *conn; + + /* + * Only scan for HP-IB devices when conn= was specified, to not + * break SCPI devices' operation. + */ + conn = NULL; + (void)sr_serial_extract_options(options, &conn, NULL); + if (!conn) + return NULL; + return sr_scpi_scan(di->context, options, probe_hpib_pps_device); }