code formatting & more info into message

This commit is contained in:
rusefillc 2020-12-06 08:30:31 -05:00
parent 9238aa454e
commit bcf404cdae
2 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,7 @@ void tachSignalCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
// How many tach pulse periods do we have?
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);
return;
}

View File

@ -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 (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;
}