Skip to content

Commit

Permalink
mgmt: mcumgr: transport: Fix SMP header not being packed
Browse files Browse the repository at this point in the history
Fixes an issue with using SMP on devices that do not support
unaligned memory access e.g. Cortex M0 which would result in a
hard fault

Signed-off-by: Jamie McCrae <spam@helper3000.net>
  • Loading branch information
thedjnK authored and aescolar committed Jul 11, 2024
1 parent 8a08bea commit f516ee1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct smp_hdr {
uint16_t nh_group; /* MGMT_GROUP_ID_[...] */
uint8_t nh_seq; /* Sequence number */
uint8_t nh_id; /* Message ID within group */
};
} __packed;

struct smp_transport;
struct zephyr_smp_transport;
Expand Down

0 comments on commit f516ee1

Please sign in to comment.