Updating pulse ratio number for encoders