[rotel] Fix handling of balance command feedback (#13133)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2022-07-16 12:49:49 +02:00
committed by GitHub
parent 9f8c1772d2
commit d724b7f075

View File

@@ -1591,7 +1591,7 @@ public class RotelHandler extends BaseThingHandler implements RotelMessageEventL
balance = maxBalanceLevel;
} else if (value.toUpperCase().startsWith("L")) {
balance = -Integer.parseInt(value.substring(1));
} else if (value.toLowerCase().startsWith("R")) {
} else if (value.toUpperCase().startsWith("R")) {
balance = Integer.parseInt(value.substring(1));
} else {
balance = Integer.parseInt(value);