Fix pedal balance bar is inverted (#63)

This commit is contained in:
timklge 2025-08-18 18:01:00 +02:00 committed by GitHub
parent f0495768fb
commit 4f5fcb7577
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 powerbar.drawMode = ProgressBarDrawMode.CENTER_OUT
if (streamData.powerBalanceLeft != null) { 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() val percentLeft = (powerBalanceLeft ?: 50.0).roundToInt()