Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/kotlin/PlcSimulation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
init {
var simulationConfiguration = configurationParser.getConfiguredDevice().simulation
var configuration = configurationParser.getConfiguredDevice().configuration
coroutineScope.async {

Check warning on line 31 in src/main/kotlin/PlcSimulation.kt

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This function returns "Deferred", but its result is never used.

See more on https://sonarcloud.io/project/issues?id=paulorb_modbus-simulator-cli&issues=AZzTALmMZHWxYYhb78ls&open=AZzTALmMZHWxYYhb78ls&pullRequest=25
try {
while (this.isActive) {
val startTime = System.currentTimeMillis()
Expand Down Expand Up @@ -494,7 +494,7 @@
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
Expand Down
Loading