From d643c2a0b33b081efb8f07802bc3a531f4e0f33a Mon Sep 17 00:00:00 2001 From: Anthony Rubick <68485672+AnthonyMichaelTDM@users.noreply.github.com> Date: Mon, 28 Jul 2025 01:46:14 -0700 Subject: [PATCH] fix: improve quiet mode handling for dynamic fan control message --- poweredge-fand.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poweredge-fand.pl b/poweredge-fand.pl index aa1dd93..e9d57f9 100755 --- a/poweredge-fand.pl +++ b/poweredge-fand.pl @@ -129,7 +129,7 @@ sub set_fans_servo { print "weighted_temp = $weighted_temp ; ambient_temp $ambient_temp\n" if $print_stats; if ((!defined $current_mode) or ($current_mode ne "set")) { - print "--> disable dynamic fan control\n" if !$quiet; + print "--> disable dynamic fan control\n" if !($quiet and (defined $current_mode) and ($current_mode eq "reset")); system("ipmitool raw 0x30 0x30 0x01 0x00") == 0 or return 0; # if this fails, want to return telling caller not to think weve # made a change