File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
javasdk/NRSDK/src/com/neuronrobotics/sdk/dyio Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1180,22 +1180,27 @@ public ArrayList<DyIOChannelMode> getAvailibleChannelModes(int channel){
11801180
11811181 if (isLegacyParser ()){
11821182 BowlerDatagram dg = send (new GetChannelModeListCommand (channel ));
1183-
11841183 m = dg .getData ();
11851184 Log .error ("Packet " +channel +"\r \n " +dg );
11861185 Log .error ("Data: " +channel +"\r \n " +m );
11871186
11881187 }else {
1188+ //int l = Log.getMinimumPrintLevel();
1189+ //Log.enableInfoPrint();
11891190 Object [] args = send ("bcs.io.*;0.3;;" ,
11901191 BowlerMethod .GET ,
11911192 "gcml" ,
1192- new Object []{});
1193+ new Object []{channel });
11931194 m = (ByteList )args [0 ];
1195+ //Log.setMinimumPrintLevel(l);
11941196 }
1195-
1197+ String modeString = " Availible modes on " + channel ;
11961198 for (int i =0 ;i <m .size ();i ++){
1197- modes .add (DyIOChannelMode .get (m .getByte (i )));
1199+ DyIOChannelMode tmpMode = DyIOChannelMode .get (m .getByte (i ));
1200+ modeString +="\r \n \t " +tmpMode .toString ()+"\r \n \t " ;
1201+ modes .add (tmpMode );
11981202 }
1203+ Log .info (modeString );
11991204 return modes ;
12001205 }
12011206
You can’t perform that action at this time.
0 commit comments