Skip to content

Commit abf2b24

Browse files
committed
Fixed crash on random simulation option
1 parent b3d11f0 commit abf2b24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/Main.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Checksum : Callable<Int> {
4444
//val digest = MessageDigest.getInstance(port).digest(fileContents)
4545
//println(("%0" + digest.size * 2 + "x").format(BigInteger(1, digest)))
4646
if(simulationRandomValues) {
47+
plcMemory = PlcMemory(configuration)
4748
modbusServer = ModbusServer(plcMemory)
4849
}else {
4950
if (file.isNotEmpty()) {

0 commit comments

Comments
 (0)