Skip to content

Commit

Permalink
AP_Mount: 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 31e6eac commit 4f75ec9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/AP_Mount/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_Mount_config.h"

#define LOG_IDS_FROM_MOUNT \
LOG_MOUNT_MSG
Expand Down Expand Up @@ -34,7 +35,10 @@ struct PACKED log_Mount {
float rangefinder_dist;
};

#if !HAL_MOUNT_ENABLED
#define LOG_STRUCTURE_FROM_MOUNT
#else
#define LOG_STRUCTURE_FROM_MOUNT \
{ LOG_MOUNT_MSG, sizeof(log_Mount), \
"MNT", "QBfffffffff","TimeUS,I,DRoll,Roll,DPitch,Pitch,DYawB,YawB,DYawE,YawE,Dist", "s#ddddddddm", "F---------0" },

#endif

0 comments on commit 4f75ec9

Please sign in to comment.