AP_HAL: 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 5c1d480adc
commit 5fef5adade

View File

@ -20,10 +20,10 @@ struct PACKED log_UART {
float rx_rate; float rx_rate;
}; };
#if !HAL_UART_STATS_ENABLED #if HAL_UART_STATS_ENABLED
#define LOG_STRUCTURE_FROM_HAL
#else
#define LOG_STRUCTURE_FROM_HAL \ #define LOG_STRUCTURE_FROM_HAL \
{ LOG_UART_MSG, sizeof(log_UART), \ { LOG_UART_MSG, sizeof(log_UART), \
"UART","QBff","TimeUS,I,Tx,Rx", "s#BB", "F---" }, "UART","QBff","TimeUS,I,Tx,Rx", "s#BB", "F---" },
#else
#define LOG_STRUCTURE_FROM_HAL
#endif #endif