Fixed incorrect fan speed assignment

This was causing negative fan speeds to be calculated.