Skip to content

Commit

Permalink
AP_IOMCU: remove unneeded packed attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Nov 1, 2023
1 parent f884535 commit 60327d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/AP_IOMCU/iofirmware/ioprotocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,14 @@ struct __attribute__((packed, aligned(2))) page_GPIO {
uint8_t output_mask;
};

struct __attribute__((packed, aligned(2))) page_mode_out {
struct page_mode_out {
uint16_t mask;
uint16_t mode;
uint16_t bdmask;
uint16_t esc_type;
};

struct __attribute__((packed, aligned(2))) page_dshot {
struct page_dshot {
uint16_t telem_mask;
uint8_t command;
uint8_t chan;
Expand All @@ -205,13 +205,13 @@ struct __attribute__((packed, aligned(2))) page_dshot {
uint8_t priority;
};

struct __attribute__((packed, aligned(2))) page_dshot_erpm {
struct page_dshot_erpm {
uint16_t erpm[IOMCU_MAX_CHANNELS];
uint32_t update_mask;
};

// separate telemetry packet because (a) it's too big otherwise and (b) slower update rate
struct __attribute__((packed, aligned(2))) page_dshot_telem {
struct page_dshot_telem {
uint16_t error_rate[4]; // as a centi-percentage
uint16_t voltage_cvolts[4];
uint16_t current_camps[4];
Expand Down

0 comments on commit 60327d5

Please sign in to comment.