code formatting & more info into message
This commit is contained in:
parent
9238aa454e
commit
bcf404cdae
|
@ -38,7 +38,7 @@ void tachSignalCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
// How many tach pulse periods do we have?
|
// How many tach pulse periods do we have?
|
||||||
int periods = CONFIG(tachPulsePerRev);
|
int periods = CONFIG(tachPulsePerRev);
|
||||||
|
|
||||||
if (periods == 0 || periods > 10){
|
if (periods == 0 || periods > 10) {
|
||||||
firmwareError(CUSTOM_ERR_6709, "Invalid tachometer pulse per rev: %d", periods);
|
firmwareError(CUSTOM_ERR_6709, "Invalid tachometer pulse per rev: %d", periods);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,9 @@ static bool configureTps(LinearFunc& func, float closed, float open, float min,
|
||||||
|
|
||||||
// If the voltage for closed vs. open is very near, something is wrong with your calibration
|
// If the voltage for closed vs. open is very near, something is wrong with your calibration
|
||||||
if (split < 0.5f) {
|
if (split < 0.5f) {
|
||||||
firmwareError(OBD_Throttle_Position_Sensor_Circuit_Malfunction, "Sensor \"%s\" problem: open/closed calibration values are too close together. Please check your wiring!", msg);
|
firmwareError(OBD_Throttle_Position_Sensor_Circuit_Malfunction, "Sensor \"%s\" problem: open %f/closed %f calibration values are too close together. Please check your wiring!", msg,
|
||||||
|
open,
|
||||||
|
closed);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue