I might not have been clear enough lol. I have this block of code,
int getERPM() //Engine RPM.
{
int result; //Variable to store calculation result.
Serial.print(ENGINE_RPM);
if (ELM_Read() == 1) //Calls the ELM_Read block.
{
result = ((Byte_AH * 256) + Byte_BH) / 4; //Function calculation.
return result;
}
return 0;
}
that is being called from my main loop. So inside this block i have,
if (ELM_Read() == 1) //Calls the ELM_Read block.
.
I want to pass the value of 2 to the ELM_Read() function. Is that possible?
Many thanks.