Some how the pump speed was coming in negative, and causing the pump_speed pin to go high right before it was shut off. This fixes it.