Skip to content

Commit

Permalink
Fix for wrong loudness value being sent when user requests loudness 0
Browse files Browse the repository at this point in the history
  • Loading branch information
digidocs committed Aug 23, 2024
1 parent 32ee8f0 commit cf6f28c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/SqueezeESP32/Player.pm
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ sub send_equalizer {
sub send_loudness {
my ($client, $loudness) = @_;

$loudness ||= $prefs->client($client)->get('loudness') || 0;
$loudness = defined $loudness ? $loudness : $prefs->client($client)->get('loudness');

my $data = pack("c1", $loudness);
$client->sendFrame( loud => \$data );
}
Expand Down

0 comments on commit cf6f28c

Please sign in to comment.