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