Explorar o código

fix stupid bug in retrieve that ete timing is never reset

Boyoung- %!s(int64=9) %!d(string=hai) anos
pai
achega
5f58506035
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/protocols/Retrieve.java

+ 4 - 1
src/protocols/Retrieve.java

@@ -138,8 +138,11 @@ public class Retrieve extends Protocol {
 
 			for (int j = 0; j < repeat; j++) {
 				int cycleIndex = i * repeat + j;
-				if (cycleIndex == reset * repeat)
+				if (cycleIndex == reset * repeat) {
 					timer.reset();
+					ete_on.reset();
+					ete_off.reset();
+				}
 				if (cycleIndex == 1) {
 					con1.bandSwitch = false;
 					con2.bandSwitch = false;