}
public byte[] sendDataToLocalDevice(Long deviceId, byte[] data) {
+ System.out.println("Passing Locally");
+
if (deviceId == t1.getId()) {
return t1.localCommInput(data);
} else if (deviceId == t2.getId()) {
return t2.localCommInput(data);
- }
- else {
+ } else {
throw new Error("Cannot send to " + deviceId + " using this local comm");
}
}