mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-01 16:52:18 +00:00
ztex: Harmonize low-speed FPGA configuration code with high-speed code
This commit is contained in:
parent
4629553ad6
commit
b28dbc2e1c
@ -306,11 +306,13 @@ static int libztex_configureFpgaLS(struct libztex_device *ztex, const char* firm
|
|||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
libztex_getFpgaState(ztex, &state);
|
libztex_getFpgaState(ztex, &state);
|
||||||
if (!state.fpgaConfigured) {
|
if (!state.fpgaConfigured) {
|
||||||
applog(LOG_ERR, "%s: FPGA configuration failed: DONE pin does not go high", ztex->repr);
|
applog(LOG_ERR, "%s: LS FPGA configuration failed: DONE pin does not go high", ztex->repr);
|
||||||
return 3;
|
return -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
nmsleep(200);
|
nmsleep(200);
|
||||||
applog(LOG_INFO, "%s: FPGA configuration done", ztex->repr);
|
applog(LOG_INFO, "%s: FPGA configuration done", ztex->repr);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user