Skip to content

Commit

Permalink
AP_RPM: save some flash when features disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Dec 1, 2024
1 parent 4f75ec9 commit 644287f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_RPM/LogStructure.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <AP_Logger/LogStructure.h>
#include "AP_RPM_config.h"

#define LOG_IDS_FROM_RPM \
LOG_RPM_MSG
Expand All @@ -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

0 comments on commit 644287f

Please sign in to comment.