File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ dependencies {
28
28
implementation(" javax.xml.bind:jaxb-api:2.3.1" )
29
29
implementation(" com.sun.xml.bind:jaxb-core:2.3.0.1" )
30
30
implementation(" com.sun.xml.bind:jaxb-impl:2.3.3" )
31
- implementation (" com.github.paulorb:modbus-kt:1.0.14 " )
31
+ implementation (" com.github.paulorb:modbus-kt:1.0.18 " )
32
32
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" )
33
33
implementation(" org.apache.commons:commons-csv:1.10.0" )
34
34
implementation(" org.apache.logging.log4j:log4j-core:$log4jVersion " )
Original file line number Diff line number Diff line change @@ -71,11 +71,9 @@ class PlcMemory(configurationParser: ConfigurationParser) : IModbusServerEventL
71
71
}
72
72
}
73
73
74
-
75
-
76
- override fun presetSingleRegister (address : Int , value : Boolean ) {
77
- logger.debug(" presetSingleRegister" )
78
- TODO (" Not yet implemented" )
74
+ // 4x register
75
+ override fun presetSingleRegister (address : Int , value : Short ) {
76
+ holdingRegister[address] = value
79
77
}
80
78
81
79
// 0x Registers
You can’t perform that action at this time.
0 commit comments