forked from LupusNobilis/java-org.hwo
ServiceLink: Updates, Debug removal
parent
68a72f0b71
commit
6435ba0596
|
@ -130,7 +130,7 @@ public class ServiceLink {
|
|||
if (chksum != ChkSum.chksum(rxbuffer, 0, bb.position() - 2))
|
||||
throw new ServiceLinkException();
|
||||
|
||||
System.err.println(String.format("recv(): %d.%d:%d = 0x%08x",achse,knoten,register,bb.getInt(5)));
|
||||
//System.err.println(String.format("recv(): %d.%d:%d = 0x%08x",achse,knoten,register,bb.getInt(5)));
|
||||
|
||||
} catch (IOException e) {
|
||||
getSerialPort().close();
|
||||
|
@ -185,7 +185,7 @@ public class ServiceLink {
|
|||
{
|
||||
this.retries = 3;
|
||||
this.serialPort = serialPort;
|
||||
this.serialPort.setTimeout(250);
|
||||
this.serialPort.setTimeout(500);
|
||||
this.serviceRegisterCache = new ServiceRegisterCache(this);
|
||||
this.requestTime = new Smoother();
|
||||
this.requestTime.setTn(16);
|
||||
|
|
|
@ -53,7 +53,10 @@ public class IntegerRegisterEditor extends JPanel implements ServiceRegisterCont
|
|||
|
||||
@Override
|
||||
public void readValue() {
|
||||
tfValue.setText(this.serviceRegister.readIntegerValue().toString());
|
||||
Integer i = this.serviceRegister.readIntegerValue();
|
||||
if ( i == null )
|
||||
i = 0;
|
||||
tfValue.setText(i.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue