We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3629b54 commit cd32785Copy full SHA for cd32785
src/main/kotlin/ModbusReadInputRegisterResponse.kt
@@ -43,8 +43,8 @@ class ModbusReadInputRegisterResponse: ModbusPacket {
43
byteVector = ByteArray(LEN_BYTES_METADATA_SIZE + length )
44
byteVector[0] = length
45
for(element in listIndexToRegisterValue){
46
- byteVector[(element.first - minIndex)+ 1] = DataConverter.toBytes(element.second)[0]
47
- byteVector[(element.first - minIndex)+ 2] = DataConverter.toBytes(element.second)[1]
+ byteVector[(element.first - minIndex)+ 1] = DataConverter.toBytes(element.second)[1]
+ byteVector[(element.first - minIndex)+ 2] = DataConverter.toBytes(element.second)[0]
48
}
49
50
0 commit comments