Skip to content

Commit 0169fdd

Browse files
authored
Merge pull request #9 from paulorb/trace
trace op. was not presenting float32 values correctly
2 parents 20d18b5 + 4e8cf8e commit 0169fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/operations/TraceOperation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class TraceOperation(
3535
}
3636
val intValue = ((currentValue[1].toInt() shl 16) or (currentValue[0].toInt() and 0xFFFF))
3737
val currentFloatValue = java.lang.Float.intBitsToFloat(intValue)
38-
valueToTrace = currentValue.toString()
38+
valueToTrace = currentFloatValue.toString()
3939
} else {
4040
var currentValue = memory.readHoldingRegister(variable.address.toInt(), 1)
4141
if (currentValue.isEmpty()) {

0 commit comments

Comments
 (0)