From ab60b37fc743aec92163d677b46cb428158a638f Mon Sep 17 00:00:00 2001 From: Glenn Fiedler Date: Sat, 30 Dec 2023 18:55:45 -0500 Subject: [PATCH] Update README.md Signed-off-by: Glenn Fiedler --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 8b9b1df..95a2351 100644 --- a/README.md +++ b/README.md @@ -72,9 +72,7 @@ reliable_endpoint_receive_packet( endpoint, packet_data, packet_bytes ); Now you can send packets through the endpoint: ```c -uint8_t packet[8]; -memset( packet, 0, sizeof( packet ) ); -reliable_endpoint_send_packet( endpoint, packet, sizeof( packet ) ); +reliable_endpoint_send_packet( endpoint, packet_data, packet_bytes ); ``` And can get acks for packets sent through an endpoint like this: