diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index 6744d77210..fa411ffaaf 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -1859,7 +1859,7 @@ struct gatt_chrc { union { uint16_t uuid16; uint8_t uuid[16]; - }; + } __packed; } __packed; uint16_t bt_gatt_attr_value_handle(const struct bt_gatt_attr *attr)