mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Add the cgpu_info structure before avalon reset.
This commit is contained in:
parent
291df91ced
commit
261b1299ac
@ -622,11 +622,11 @@ static bool avalon_detect_one(libusb_device *dev, struct usb_find_devices *found
|
|||||||
info->temp_sum = 0;
|
info->temp_sum = 0;
|
||||||
info->temp_old = 0;
|
info->temp_old = 0;
|
||||||
|
|
||||||
ret = avalon_reset(avalon, true);
|
if (!add_cgpu(avalon))
|
||||||
if (ret && !configured)
|
|
||||||
goto unshin;
|
goto unshin;
|
||||||
|
|
||||||
if (!add_cgpu(avalon))
|
ret = avalon_reset(avalon, true);
|
||||||
|
if (ret && !configured)
|
||||||
goto unshin;
|
goto unshin;
|
||||||
|
|
||||||
update_usb_stats(avalon);
|
update_usb_stats(avalon);
|
||||||
|
Loading…
Reference in New Issue
Block a user