Преглед изворни кода

fix stupid bug in retrieve that ete timing is never reset

Boyoung- пре 9 година
родитељ
комит
5f58506035
1 измењених фајлова са 4 додато и 1 уклоњено
  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;