code formatting & more info into message

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

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