mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-31 13:08:34 -04:00
AP_CANManager: rearrange log-structure ifdefs
put the positive clause first to be consistent across codebase
This commit is contained in:
parent
10b2d542ed
commit
5c1d480adc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user