mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
37_Spotify: smooth volumeUp
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14432 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c4308d6d49
commit
dbad065716
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user