From 1ed2711c024ebf578dc824659dd822f142861e74 Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 7 Nov 2019 15:22:17 -0500 Subject: [PATCH] consistency --- firmware/hw_layer/can_hw.cpp | 2 +- firmware/hw_layer/can_hw.h | 2 +- firmware/init/sensor/init_oil_pressure.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/hw_layer/can_hw.cpp b/firmware/hw_layer/can_hw.cpp index f654cda20d..692c9b8fb1 100644 --- a/firmware/hw_layer/can_hw.cpp +++ b/firmware/hw_layer/can_hw.cpp @@ -305,7 +305,7 @@ void setCanType(int type) { canInfo(); } -#if defined(EFI_TUNER_STUDIO) +#if EFI_TUNER_STUDIO void postCanState(TunerStudioOutputChannels *tsOutputChannels) { tsOutputChannels->debugIntField1 = isCanEnabled ? canReadCounter : -1; tsOutputChannels->debugIntField2 = isCanEnabled ? canWriteOk : -1; diff --git a/firmware/hw_layer/can_hw.h b/firmware/hw_layer/can_hw.h index 9d195d2b03..a012230a89 100644 --- a/firmware/hw_layer/can_hw.h +++ b/firmware/hw_layer/can_hw.h @@ -47,7 +47,7 @@ void setTxBit(int offset, int index); void stopCanPins(DECLARE_ENGINE_PARAMETER_SIGNATURE); void startCanPins(DECLARE_ENGINE_PARAMETER_SIGNATURE); void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_SIGNATURE); -#if defined(EFI_TUNER_STUDIO) +#if EFI_TUNER_STUDIO void postCanState(TunerStudioOutputChannels *tsOutputChannels); #endif /* EFI_TUNER_STUDIO */ #endif /* EFI_CAN_SUPPORT */ diff --git a/firmware/init/sensor/init_oil_pressure.cpp b/firmware/init/sensor/init_oil_pressure.cpp index 91159ec8fb..f1069ab644 100644 --- a/firmware/init/sensor/init_oil_pressure.cpp +++ b/firmware/init/sensor/init_oil_pressure.cpp @@ -4,7 +4,7 @@ #include "global.h" #include "functional_sensor.h" #include "linear_func.h" -#if defined(EFI_TUNER_STUDIO) +#if EFI_TUNER_STUDIO #include "tunerstudio_configuration.h" #endif @@ -33,7 +33,7 @@ void initOilPressure() { oilpSensorFunc.configure(sensorCfg->v1, val1, sensorCfg->v2, val2, /*minOutput*/ -5, greaterOutput); oilpSensor.setFunction(oilpSensorFunc); -#if defined(EFI_TUNER_STUDIO) +#if EFI_TUNER_STUDIO // Tell it to report to its output channel oilpSensor.setReportingLocation(&tsOutputChannels.oilPressure); #endif