Fix pedal balance bar is inverted (#63)
Some checks failed
Build / build (push) Failing after 5m15s

This commit is contained in:
timklge 2025-08-18 18:01:00 +02:00 committed by GitHub
parent f0495768fb
commit f26986900a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,7 +227,7 @@ class Window(
powerbar.drawMode = ProgressBarDrawMode.CENTER_OUT
if (streamData.powerBalanceLeft != null) {
val value = remap((powerBalanceLeft ?: 50.0).coerceIn(0.0, 100.0), 40.0, 60.0, 0.0, 100.0)
val value = remap((powerBalanceLeft ?: 50.0).coerceIn(0.0, 100.0), 40.0, 60.0, 100.0, 0.0)
val percentLeft = (powerBalanceLeft ?: 50.0).roundToInt()