Fix the build when libusb is not available.
Thanks Simon Richter <Simon.Richter@hogyros.de> for reporting.
This commit is contained in:
parent
3a277f3b2b
commit
a0c7e23ad8
4
std.c
4
std.c
|
@ -204,7 +204,11 @@ SR_PRIV int std_dev_clear(const struct sr_dev_driver *driver,
|
|||
|
||||
if (sdi->conn) {
|
||||
if (sdi->inst_type == SR_INST_USB)
|
||||
#if HAVE_LIBUSB_1_0
|
||||
sr_usb_dev_inst_free(sdi->conn);
|
||||
#else
|
||||
;
|
||||
#endif
|
||||
else if (sdi->inst_type == SR_INST_SERIAL)
|
||||
sr_serial_dev_inst_free(sdi->conn);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue