Skip to content

Commit

Permalink
Fix effect of min/max values of sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
Danand committed Mar 17, 2024
1 parent f94d620 commit 784b1ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun normalizeOnto(
val normalizedValue = ratio * (toEnd - toStart) + toStart

var normalizedValueClamped = max(normalizedValue, toStart)
normalizedValueClamped = min(normalizedValue, toEnd)
normalizedValueClamped = min(normalizedValueClamped, toEnd)

return normalizedValueClamped
}

0 comments on commit 784b1ed

Please sign in to comment.