From 69e48e1e44b7bea3e4d1b106da4cff268c9aa307 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 19 Oct 2020 22:47:09 -0400 Subject: [PATCH] code style --- firmware/hw_layer/mc33816.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/hw_layer/mc33816.cpp b/firmware/hw_layer/mc33816.cpp index 9d7d40f921..f9aa11e7c1 100644 --- a/firmware/hw_layer/mc33816.cpp +++ b/firmware/hw_layer/mc33816.cpp @@ -187,11 +187,11 @@ static void setTimings() { void setBoostVoltage(float volts) { // 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); return; } - if(volts < 10.0f) { + if (volts < 10.0f) { firmwareError(OBD_PCM_Processor_Fault, "DI Boost voltage setpoint too low: %.1f", volts); return; } @@ -568,14 +568,14 @@ static void mcRestart() { driven.setValue(1); // driven = HV chThdSleepMilliseconds(10); // Give it a moment mcDriverStatus = readDriverStatus(); - if(!checkDrivenEnabled(mcDriverStatus)){ + if (!checkDrivenEnabled(mcDriverStatus)) { firmwareError(OBD_PCM_Processor_Fault, "MC33 Driven did not stick!"); mcShutdown(); return; } 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! mcShutdown(); return;