Register address bug in WriteMultipleRegistersRequest.readData()
Brought to you by:
wimpi
In WriteMultipleRegistersRequest.readData(), the target address is read as a short:
public void readData(DataInput din)
throws IOException {
m_Reference = din.readShort();
...
Where it should be using din.readUnsignedShort() (which every other request does). When using Jamod to implement a Modbus Slave, this renders the upper half of the address space unreachable.
Whoops, I meant to post this as a Bug, not a Patch. I'm not terribly familiar with SourceForge's tickets system, sorry.
That said, I'm attaching a patch to this as well.