From c6d82010b54a72a8e63de8186987c41f7c46f469 Mon Sep 17 00:00:00 2001 From: neumann Date: Tue, 30 May 2017 20:20:16 +0000 Subject: [PATCH] 37_Spotify: smooth volumeUp git-svn-id: https://svn.fhem.de/fhem/trunk@14432 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/37_Spotify.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/FHEM/37_Spotify.pm b/fhem/FHEM/37_Spotify.pm index 6347ac619..033b11f09 100644 --- a/fhem/FHEM/37_Spotify.pm +++ b/fhem/FHEM/37_Spotify.pm @@ -636,6 +636,7 @@ sub Spotify_volumeStep($$$$) { $step = 5 if(!defined $step); my $nextVolume = min(100, max(0, $hash->{helper}{device_active}{volume_percent} + $step * $direction)); + $hash->{helper}{device_active}{volume_percent} = $nextVolume; Spotify_setVolume($hash, 0, $nextVolume, $device_id); return undef;