mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 19:44:21 +00:00
libztex: Verify that the mining firmware is not a dummy firmware
This commit is contained in:
parent
843e9120b3
commit
a5b2845096
@ -161,6 +161,13 @@ static enum check_result libztex_checkDevice(struct libusb_device *dev)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check for dummy firmware
|
||||||
|
if (rv[8] == 0)
|
||||||
|
{
|
||||||
|
applog(LOG_ERR, "%s: found a ZTEX dummy firmware", __func__);
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
// reset 1
|
// reset 1
|
||||||
buf[0] = 1;
|
buf[0] = 1;
|
||||||
cnt = libusb_control_transfer(hndl, 0x40, 0xA0, 0xE600, 0, buf, 1,1000);
|
cnt = libusb_control_transfer(hndl, 0x40, 0xA0, 0xE600, 0, buf, 1,1000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user