Fix: rx register address >= 0x8000

master
Harald Wolff 2016-11-18 10:42:27 +01:00
parent a9b700c9c0
commit 8bcae15449
2 changed files with 5 additions and 0 deletions

View File

@ -323,6 +323,7 @@ public class ServiceLink implements NewSerialPortListener {
}
rx = ServiceLinkTelegram.read(getSerialPort().getInputStream());
if (rx != null){
log(DEBUG,"RX: %s", rx.getAddress());
received(rx);
}
}

View File

@ -12,6 +12,10 @@ public class ServiceLinkAddress {
this.ax = ax;
this.node = node;
this.register = register;
if (this.register < 0){
this.register += 65536;
}
}
@Override