code style

This commit is contained in:
rusefi 2020-10-19 22:47:09 -04:00
parent 4343f96fd4
commit 69e48e1e44
1 changed files with 4 additions and 4 deletions

View File

@ -187,11 +187,11 @@ static void setTimings() {
void setBoostVoltage(float volts) void setBoostVoltage(float volts)
{ {
// Sanity checks, Datasheet says not too high, nor too low // Sanity checks, Datasheet says not too high, nor too low
if(volts > 65.0f) { if (volts > 65.0f) {
firmwareError(OBD_PCM_Processor_Fault, "DI Boost voltage setpoint too high: %.1f", volts); firmwareError(OBD_PCM_Processor_Fault, "DI Boost voltage setpoint too high: %.1f", volts);
return; return;
} }
if(volts < 10.0f) { if (volts < 10.0f) {
firmwareError(OBD_PCM_Processor_Fault, "DI Boost voltage setpoint too low: %.1f", volts); firmwareError(OBD_PCM_Processor_Fault, "DI Boost voltage setpoint too low: %.1f", volts);
return; return;
} }
@ -568,14 +568,14 @@ static void mcRestart() {
driven.setValue(1); // driven = HV driven.setValue(1); // driven = HV
chThdSleepMilliseconds(10); // Give it a moment chThdSleepMilliseconds(10); // Give it a moment
mcDriverStatus = readDriverStatus(); mcDriverStatus = readDriverStatus();
if(!checkDrivenEnabled(mcDriverStatus)){ if (!checkDrivenEnabled(mcDriverStatus)) {
firmwareError(OBD_PCM_Processor_Fault, "MC33 Driven did not stick!"); firmwareError(OBD_PCM_Processor_Fault, "MC33 Driven did not stick!");
mcShutdown(); mcShutdown();
return; return;
} }
mcDriverStatus = readDriverStatus(); mcDriverStatus = readDriverStatus();
if(checkUndervoltVccP(mcDriverStatus)){ if (checkUndervoltVccP(mcDriverStatus)) {
firmwareError(OBD_PCM_Processor_Fault, "MC33 VccP Under-Voltage After Driven"); // Likely DC-DC LS7 is dead! firmwareError(OBD_PCM_Processor_Fault, "MC33 VccP Under-Voltage After Driven"); // Likely DC-DC LS7 is dead!
mcShutdown(); mcShutdown();
return; return;