control: Remove target check in Zone::setTarget
In Zone::setTarget that sets fan targets, remove the check that exits
out if the new target value equals the previous target (_target) value.
Do this because:
1) _target gets set to the power on speed in the constructor but doesn't
set fan speeds then. When the power turns on is when the code
acutally sets the fans to that value, which was then not doing
anything because the target was already the _target value.
2) The fan objects also check if the new requested speed matched their
previous one, so that check would also catch a duplicate speed
change.
Tested:
Verify the fan speeds were being written on a power on.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I1db60d9ea3a2e3ba04fc32e024da6c21e722b828
1 file changed