Bluetooth: GATT: Fix missing endianess conversion on include end-handle

Added missing conversion to CPU endianess for the include service
end-handle.

Signed-off-by: Fredrik Danebjer <fredrik@danebjer.com>
This commit is contained in:
Fredrik Danebjer 2022-12-14 09:43:32 +01:00 committed by Carles Cufí
commit c5b270e7b0

View file

@ -1609,7 +1609,7 @@ static uint8_t get_service_handles(const struct bt_gatt_attr *attr,
return BT_GATT_ITER_STOP;
}
include->end_handle = handle;
include->end_handle = sys_cpu_to_le16(handle);
return BT_GATT_ITER_CONTINUE;
}