From 7f185ce4b8da1a787313e20d6ec358d943f1c2c4 Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 24 Jan 2018 22:51:02 -0500 Subject: [PATCH] fixing build more --- firmware/console/status_loop.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 3a7ffbb747..3b8c86d634 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -193,6 +193,21 @@ static void printSensors(Logging *log, bool fileFormat) { if (hasVBatt(PASS_ENGINE_PARAMETER_SIGNATURE)) { reportSensorF(log, fileFormat, GAUGE_NAME_VBAT, "V", getVBatt(PASS_ENGINE_PARAMETER_SIGNATURE), 2); // log column #6 } +#if EFI_ANALOG_SENSORS || defined(__DOXYGEN__) + if (hasMapSensor(PASS_ENGINE_PARAMETER_SIGNATURE)) { + reportSensorF(log, fileFormat, "MAP", "kPa", getMap(), 2); +// reportSensorF(log, fileFormat, "map_r", "V", getRawMap(), 2); + } +#endif /* EFI_ANALOG_SENSORS */ +#if EFI_ANALOG_SENSORS || defined(__DOXYGEN__) + if (hasBaroSensor()) { + reportSensorF(log, fileFormat, "baro", "kPa", getBaroPressure(), 2); + } +#endif /* EFI_ANALOG_SENSORS */ + + if (hasAfrSensor(PASS_ENGINE_PARAMETER_SIGNATURE)) { + reportSensorF(log, fileFormat, GAUGE_NAME_AFR, "AFR", getAfr(PASS_ENGINE_PARAMETER_SIGNATURE), 2); + } if (!fileFormat) { @@ -215,21 +230,6 @@ static void printSensors(Logging *log, bool fileFormat) { reportSensorF(log, fileFormat, "maf", "V", getMaf(PASS_ENGINE_PARAMETER_SIGNATURE), 2); reportSensorF(log, fileFormat, "mafr", "kg/hr", getRealMaf(PASS_ENGINE_PARAMETER_SIGNATURE), 2); } -#if EFI_ANALOG_SENSORS || defined(__DOXYGEN__) - if (hasMapSensor(PASS_ENGINE_PARAMETER_SIGNATURE)) { - reportSensorF(log, fileFormat, "MAP", "kPa", getMap(), 2); -// reportSensorF(log, fileFormat, "map_r", "V", getRawMap(), 2); - } -#endif /* EFI_ANALOG_SENSORS */ -#if EFI_ANALOG_SENSORS || defined(__DOXYGEN__) - if (hasBaroSensor()) { - reportSensorF(log, fileFormat, "baro", "kPa", getBaroPressure(), 2); - } -#endif /* EFI_ANALOG_SENSORS */ - - if (hasAfrSensor(PASS_ENGINE_PARAMETER_SIGNATURE)) { - reportSensorF(log, fileFormat, GAUGE_NAME_AFR, "AFR", getAfr(PASS_ENGINE_PARAMETER_SIGNATURE), 2); - } #if EFI_IDLE_CONTROL || defined(__DOXYGEN__) reportSensorF(log, fileFormat, GAUGE_NAME_IAC, "%", getIdlePosition(), 2);