Commit e8294b2a authored by Jamie McCrae's avatar Jamie McCrae Committed by Dominik Ermel
Browse files

boot_serial: Add packed to struct

Adds a packed attribute to the nmgr struct to avoid issues on
architectures that do not support unaligned memory access.

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 9c5d14ae
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/boot_serial/src/boot_serial_priv.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ struct nmgr_hdr {
    uint16_t nh_group;          /* NMGR_GROUP_XXX */
    uint8_t  nh_seq;            /* sequence number */
    uint8_t  nh_id;             /* message ID within group */
};
} __packed;

/*
 * From imgmgr.h