[rotel] Fix handling of balance command feedback ()

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);