mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
driver-ztex: libztex_setFreq() must be called before ztex_releaseFpga()
This commit is contained in:
parent
e59f668191
commit
f7083c00af
@ -365,10 +365,10 @@ static bool ztex_prepare(struct thr_info *thr)
|
|||||||
ztex_releaseFpga(ztex);
|
ztex_releaseFpga(ztex);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
ztex_releaseFpga(ztex);
|
|
||||||
ztex->freqM = ztex->freqMaxM+1;;
|
ztex->freqM = ztex->freqMaxM+1;;
|
||||||
//ztex_updateFreq(ztex);
|
//ztex_updateFreq(ztex);
|
||||||
libztex_setFreq(ztex, ztex->freqMDefault);
|
libztex_setFreq(ztex, ztex->freqMDefault);
|
||||||
|
ztex_releaseFpga(ztex);
|
||||||
applog(LOG_DEBUG, "%s: prepare", ztex->repr);
|
applog(LOG_DEBUG, "%s: prepare", ztex->repr);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user