Commit f7083c00af32351dbb8fff63c2cb2fb5e10da69f

Denis Ahrens 2012-12-06T16:52:06

driver-ztex: libztex_setFreq() must be called before ztex_releaseFpga()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/driver-ztex.c b/driver-ztex.c
index 621c0be..c00ba26 100644
--- a/driver-ztex.c
+++ b/driver-ztex.c
@@ -365,10 +365,10 @@ static bool ztex_prepare(struct thr_info *thr)
 		ztex_releaseFpga(ztex);
 		return false;
 	}
-	ztex_releaseFpga(ztex);
 	ztex->freqM = ztex->freqMaxM+1;;
 	//ztex_updateFreq(ztex);
 	libztex_setFreq(ztex, ztex->freqMDefault);
+	ztex_releaseFpga(ztex);
 	applog(LOG_DEBUG, "%s: prepare", ztex->repr);
 	return true;
 }