From 83febb28ed1a3436ae7524df40e96dcce5f0f2e9 Mon Sep 17 00:00:00 2001 From: paulorb Date: Mon, 9 Mar 2026 18:28:18 +0400 Subject: [PATCH] fix: issue when comparing coils --- src/main/kotlin/PlcSimulation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/PlcSimulation.kt b/src/main/kotlin/PlcSimulation.kt index e9f429f..7f9f6a7 100644 --- a/src/main/kotlin/PlcSimulation.kt +++ b/src/main/kotlin/PlcSimulation.kt @@ -494,7 +494,7 @@ class PlcSimulation( throw CancellationException("Error - IfEqual") } //compare - if( currentValue.first() != value.toBoolean()){ + if( currentValue.first() != value.toBooleanFromBinary()){ //abort and continue //since the value does not match the condition return