Skip to content

Commit

Permalink
AP_Servo_Telem: rearrange log-structure ifdefs
Browse files Browse the repository at this point in the history
put the positive clause first to be consistent across codebase
  • Loading branch information
peterbarker committed Jan 8, 2025
1 parent b5d9534 commit 99e7f51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_Servo_Telem/LogStructure.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 99e7f51

Please sign in to comment.