changed code to take into account trims in wot afr error calc