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]);
|
||||
updatePlayer(listener -> {
|
||||
try {
|
||||
int volume = Integer.parseInt(volumeStringValue);
|
||||
int volume = Math.round(Float.parseFloat(volumeStringValue));
|
||||
|
||||
// Check if we received a relative volume change, or an absolute
|
||||
// volume value.
|
||||
|
|
Loading…
Reference in New Issue