Skip to content

Commit 4965f14

Browse files
committed
extra print statements
1 parent b2a5b17 commit 4965f14

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,15 @@ public int getValue() {
399399

400400
val = new DyIOChannelEvent(this,bl).getValue();
401401
}else{
402+
int l = Log.getMinimumPrintLevel();
403+
//Log.enableInfoPrint();
402404
Object [] args =getDevice().send("bcs.io.*;0.3;;",
403405
BowlerMethod.GET,
404406
"gchv",
405407
new Object[]{number});
406408
val=(Integer)args[1];
409+
410+
Log.setMinimumPrintLevel(l);
407411
}
408412
setCachedValue(val);
409413
setPreviousValue(val);

test/java/src/junit/test/neuronrobotics/namespace/DyIONamespaceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ public void setUp() throws Exception {
2525
DyIO.disableFWCheck();
2626
Log.enableDebugPrint();
2727

28+
//Change this MAC address to match your tester/testee mapping
2829
SerialConnection testerConection = SerialConnection.getConnectionByMacAddress(new MACAddress("74:F7:26:80:00:7C"));
2930
assertTrue(testerConection!=null);
3031
harness = new DyIO(testerConection);
3132
harness.connect();
3233

34+
//Change this MAC address to match your tester/testee mapping
3335
SerialConnection targetConection = SerialConnection.getConnectionByMacAddress(new MACAddress("74:F7:26:00:00:00"));
3436
assertTrue(targetConection!=null);
3537
targetConection.setSynchronusPacketTimeoutTime(10000);

0 commit comments

Comments
 (0)