From 07e9e76b81d4ce922baa4e1f5f4ea10a472e7d2c 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 d8be5bb9da..0d3f6ed92f 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