From 543e6028db7d2aad69ebece1dee26c3d9f19fe18 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 3 Jan 2025 14:40:41 +1100 Subject: [PATCH] AP_Servo_Telem: rearrange log-structure ifdefs put the positive clause first to be consistent across codebase --- libraries/AP_Servo_Telem/LogStructure.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Servo_Telem/LogStructure.h b/libraries/AP_Servo_Telem/LogStructure.h index d8dcb9771a..fbe13d1d67 100644 --- a/libraries/AP_Servo_Telem/LogStructure.h +++ b/libraries/AP_Servo_Telem/LogStructure.h @@ -38,10 +38,10 @@ struct PACKED log_CSRV { }; -#if !AP_SERVO_TELEM_ENABLED -#define LOG_STRUCTURE_FROM_SERVO_TELEM -#else +#if AP_SERVO_TELEM_ENABLED #define LOG_STRUCTURE_FROM_SERVO_TELEM \ { LOG_CSRV_MSG, sizeof(log_CSRV), \ "CSRV","QBfffBfffffB","TimeUS,Id,Pos,Force,Speed,Pow,PosCmd,V,A,MotT,PCBT,Err", "s#dtk%dvAOO-", "F-000000000-", true }, +#else +#define LOG_STRUCTURE_FROM_SERVO_TELEM #endif