mirror of https://github.com/ArduPilot/ardupilot
AP_RPM: save some flash when features disabled
This commit is contained in:
parent
c28d5cd8e2
commit
198e9753d8
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AP_Logger/LogStructure.h>
|
||||
#include "AP_RPM_config.h"
|
||||
|
||||
#define LOG_IDS_FROM_RPM \
|
||||
LOG_RPM_MSG
|
||||
|
@ -21,6 +22,10 @@ struct PACKED log_RPM {
|
|||
uint8_t health;
|
||||
};
|
||||
|
||||
#if !AP_RPM_ENABLED
|
||||
#define LOG_STRUCTURE_FROM_RPM
|
||||
#else
|
||||
#define LOG_STRUCTURE_FROM_RPM \
|
||||
{ LOG_RPM_MSG, sizeof(log_RPM), \
|
||||
"RPM", "QBffB", "TimeUS,I,RPM,Qual,H", "s#q--", "F-000" , true },
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue