Skip to content

Commit 0e59610

Browse files
committed
removing iterable in the dyuio channel eventing. this should also help
with the concurrent modification
1 parent 1ffbfc7 commit 0e59610

File tree

1 file changed

+2
-1
lines changed
  • javasdk/NRSDK/src/com/neuronrobotics/sdk/dyio

1 file changed

+2
-1
lines changed

javasdk/NRSDK/src/com/neuronrobotics/sdk/dyio/DyIO.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,8 @@ public void onAsyncResponse(BowlerDatagram data) {
736736
if(numChan !=getChannels().size() ){
737737
Log.error("Bad packet, wrong number of values");
738738
}
739-
for(DyIOChannel c:getChannels()){
739+
for(int i=0;i<getChannels().size();i++){
740+
DyIOChannel c= getChannels().get(i);
740741
ByteList val = new ByteList(bl.popList(4));
741742
Log.info("DyIO event "+c+" value: "+val);
742743
if(!c.isStreamChannel())

0 commit comments

Comments
 (0)