[rotel] Fix handling of balance command feedback (#13133)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
9f8c1772d2
commit
d724b7f075
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user