Fix parsing to handle when volume is a float (#11151)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
parent
4988522173
commit
5cb228570d
@ -646,7 +646,7 @@ public class SqueezeBoxServerHandler extends BaseBridgeHandler {
|
|||||||
String volumeStringValue = decode(messageParts[3]);
|
String volumeStringValue = decode(messageParts[3]);
|
||||||
updatePlayer(listener -> {
|
updatePlayer(listener -> {
|
||||||
try {
|
try {
|
||||||
int volume = Integer.parseInt(volumeStringValue);
|
int volume = Math.round(Float.parseFloat(volumeStringValue));
|
||||||
|
|
||||||
// Check if we received a relative volume change, or an absolute
|
// Check if we received a relative volume change, or an absolute
|
||||||
// volume value.
|
// volume value.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user