mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Allow cgminer to start if usb hotplug is enabled but no devices yet exist.
This commit is contained in:
parent
132ee4c981
commit
1a19729aaa
@ -7342,8 +7342,15 @@ int main(int argc, char *argv[])
|
||||
enable_device(devices[i]);
|
||||
}
|
||||
|
||||
#ifdef USE_USBUTILS
|
||||
if (!total_devices) {
|
||||
applog(LOG_WARNING, "No devices detected!");
|
||||
applog(LOG_WARNING, "Waiting for USB hotplug devices or press q to quit");
|
||||
}
|
||||
#else
|
||||
if (!total_devices)
|
||||
quit(1, "All devices disabled, cannot mine!");
|
||||
#endif
|
||||
|
||||
start_devices = total_devices;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user