mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-04 19:14:26 +00:00
do usb_initialise() after the started message so we see it
This commit is contained in:
parent
6acda9373b
commit
6d629d6856
12
cgminer.c
12
cgminer.c
@ -7048,6 +7048,9 @@ int main(int argc, char *argv[])
|
||||
fflush(stderr);
|
||||
quit(1, "libusb_init() failed");
|
||||
}
|
||||
#ifdef USE_USBUTILS
|
||||
mutex_init(&cgusb_lock);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
mutex_init(&hash_lock);
|
||||
@ -7135,11 +7138,6 @@ int main(int argc, char *argv[])
|
||||
if (argc != 1)
|
||||
quit(1, "Unexpected extra commandline arguments");
|
||||
|
||||
#ifdef USE_USBUTILS
|
||||
mutex_init(&cgusb_lock);
|
||||
usb_initialise();
|
||||
#endif
|
||||
|
||||
if (!config_loaded)
|
||||
load_default_config();
|
||||
|
||||
@ -7189,6 +7187,10 @@ int main(int argc, char *argv[])
|
||||
if (want_per_device_stats)
|
||||
opt_log_output = true;
|
||||
|
||||
#ifdef USE_USBUTILS
|
||||
usb_initialise();
|
||||
#endif
|
||||
|
||||
#ifdef WANT_CPUMINE
|
||||
#ifdef USE_SCRYPT
|
||||
if (opt_scrypt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user