@@ -112,6 +112,9 @@ static int ztex_autodetect(void)
static void ztex_detect()
{
+ if (!have_libusb)
+ return;
+
// This wrapper ensures users can specify -S ztex:noauto to disable it
noserial_detect(&ztex_drv, ztex_autodetect);
}
@@ -10256,12 +10256,12 @@ void drv_detect_all()
#endif
#ifdef USE_X6500
- if (likely(have_libusb) && !opt_scrypt)
+ if (!opt_scrypt)
x6500_api.drv_detect();
#ifdef USE_ZTEX
ztex_drv.drv_detect();