diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index cfccac8e0..04bb61dcb 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -412,8 +412,7 @@ YAMAHA_AVR_Set($@) { Log GetLogLevel($name, 4), "YAMAHA_AVR: set volume to ".($current_volume + ($diff * $step))." dB"; - YAMAHA_AVR_SendCommand($hash, "<$zone><$volume_cmd>".(($current_volume + ($diff * -$step))*10)."1dB"); + YAMAHA_AVR_SendCommand($hash, "<$zone><$volume_cmd>".(($current_volume + ($diff * $step))*10)."1dB"); Log GetLogLevel($name, 4), "YAMAHA_AVR: sleeping for ".sprintf("%.3f", $sleep)." seconds" unless ($time == 0); sleep $sleep unless ($time == 0); @@ -423,8 +422,7 @@ $step))*10)."1dB<$zone><$volume_cmd>".($a[2]*10)."1dB"); + $result = YAMAHA_AVR_SendCommand($hash, "<$zone><$volume_cmd>".($a[2]*10)."1dB"); if(not $result =~ /RC="0"/) { # if the returncode isn't 0, than the command was not successful