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.
2 parents 9843952 + 3854cab commit 52259d8Copy full SHA for 52259d8
src/main/kotlin/ModbusPresetSingleRegisterResponse.kt
@@ -30,7 +30,7 @@ class ModbusPresetSingleRegisterResponse : ModbusPacket {
30
31
32
override fun encode() {
33
- functionCode = ModbusPacket.FunctionCode.FORCE_SINGLE_COIL.value.toByte()
+ functionCode = ModbusPacket.FunctionCode.PRESET_SINGLE_REGISTER.value.toByte()
34
protocolIdentifier = DEFAULT_PROTOCOL_IDENTIFIER.toShort()
35
val addressBytes = DataConverter.toBytes(currentAddress.toShort())
36
byteVector = ByteArray(LEN_BYTES_METADATA_SIZE)
0 commit comments