AP_CANManager: rearrange log-structure ifdefs

put the positive clause first to be consistent across codebase
This commit is contained in:
Peter Barker 2025-01-03 14:40:40 +11:00 committed by Peter Barker
parent 10b2d542ed
commit 5c1d480adc

View File

@ -56,9 +56,7 @@ struct PACKED log_CAFD {
uint64_t data[8];
};
#if !AP_CAN_LOGGING_ENABLED
#define LOG_STRUCTURE_FROM_CANMANAGER
#else
#if AP_CAN_LOGGING_ENABLED
#define LOG_STRUCTURE_FROM_CANMANAGER \
{ LOG_CANF_MSG, sizeof(log_CANF), \
"CANF", \
@ -76,4 +74,6 @@ struct PACKED log_CAFD {
"F" "-" "-" "-" "-" "-" "-" "-" "-" "-" "-" "-", \
false \
},
#else
#define LOG_STRUCTURE_FROM_CANMANAGER
#endif // AP_CAN_LOGGING_ENABLED