I'm trying to track down why, when I'm coasting and the injectors are shut off, I see GPH rise to a very large number.
In this routine in v0.75:
Code:
void processInjClosed(void){
long t = microSeconds();
long x = elapsedMicroseconds(injHiStart, t)- parms[injectorSettleTimeIdx];
if(x >0)
tmpTrip.injHius += x;
tmpTrip.injPulses++;
if (tmpInstInjStart != nil) {
if(x >0)
tmpInstInjTot += x;
tmpInstInjCount++;
} else {
tmpInstInjStart = t;
}
tmpInstInjEnd = t;
}
The variables t and x are declared as 'long'. Yet the functions being assigned to those vars are declared as 'unsigned long'. I am not familiar with how this compiler resolves assignment of dissimilar values. Will this introduce an error?