View Single Post
Old 10-10-2013, 04:12 PM   #175 (permalink)
josemapiro
EcoModding Apprentice
 
Join Date: Dec 2012
Location: Portugal
Posts: 197
Thanks: 93
Thanked 70 Times in 64 Posts
Quote:
Originally Posted by t vago View Post
Ah... that was the other thing.

Go to about line 1758, and there should be something that looks like:

Code:
#ifdef useChryslerMAPCorrection
const uint8_t idxCorrFactor = nextAllowedValue + 1;
#define nextAllowedValue idxCorrFactor
#endif
Then, make this change:
Code:
#ifdef useIsqrt
const uint8_t idxCorrFactor = nextAllowedValue + 1;
#define nextAllowedValue idxCorrFactor
#endif
Also, go to line 870, and change this line from:
Code:
const uint8_t pInjectorCountIdx = 				nextAllowedValue + 1;
to this:
Code:
const uint8_t pInjectorCountIdx = 				pRefFuelPressureIdx + 1;
Failure to do that will result in code, compiling with the "useCalculatedFuelFactor" option enabled, to display wildly inaccurate fuel rates and speeds, as I learned to my great surprise the other day. Ugh...

I can't post the latest code yet, because I just got done reverting the fuel injector interrupt code back to using two separate pins, and I haven't yet tested it yet to see if it works.
Ok I have done to change the code, so missing test.

Thank you
José Rodrigues
  Reply With Quote