From 2c14176f6a2b5c92b64f0cf8e1b90d9b1dd6577f Mon Sep 17 00:00:00 2001 From: Bob Long Date: Wed, 11 Sep 2024 11:55:33 +1000 Subject: [PATCH] AP_EFI: fix ECYL log message - Convert temperatures Celsius to match the docs - Fix format specifier for CHT2 --- libraries/AP_EFI/AP_EFI.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_EFI/AP_EFI.cpp b/libraries/AP_EFI/AP_EFI.cpp index b2a0940602..e6ba53d2b0 100644 --- a/libraries/AP_EFI/AP_EFI.cpp +++ b/libraries/AP_EFI/AP_EFI.cpp @@ -252,16 +252,16 @@ void AP_EFI::log_status(void) "TimeUS,Inst,IgnT,InjT,CHT,EGT,Lambda,CHT2,EGT2,IDX", "s#dsOO-OO-", "F-0C000000", - "QBfffffBff", + "QBffffffff", AP_HAL::micros64(), 0, state.cylinder_status.ignition_timing_deg, state.cylinder_status.injection_time_ms, - state.cylinder_status.cylinder_head_temperature, - state.cylinder_status.exhaust_gas_temperature, + KELVIN_TO_C(state.cylinder_status.cylinder_head_temperature), + KELVIN_TO_C(state.cylinder_status.exhaust_gas_temperature), state.cylinder_status.lambda_coefficient, - state.cylinder_status.cylinder_head_temperature2, - state.cylinder_status.exhaust_gas_temperature2, + KELVIN_TO_C(state.cylinder_status.cylinder_head_temperature2), + KELVIN_TO_C(state.cylinder_status.exhaust_gas_temperature2), state.ecu_index); } #endif // LOGGING_ENABLED