Fix builds when PWM motor protocol is used (#13236)