From dabe013a4ef289d0929789f2f9ee4a5efd8b8f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicholas=20St=C4=83nescu?= Date: Sat, 26 Apr 2025 17:12:03 +0200 Subject: [PATCH] added readme and made the size reflect the actual size and not random strlen --- README.MD | 3 +++ main.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 README.MD diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..a1908f1 --- /dev/null +++ b/README.MD @@ -0,0 +1,3 @@ +# Doing serial with c + +# dont ask \ No newline at end of file diff --git a/main.c b/main.c index 7f61644..ace6a69 100644 --- a/main.c +++ b/main.c @@ -3,16 +3,16 @@ // #include #include -#include #include "communication.h" + extern struct sp_port *port; int main(int argc, char *argv[]) { comm_init_communication(); u_int8_t data = 205; - int size = strlen(&data); + int size = 1; printf("size: %d\n", size); unsigned int timeout = 50 * size; //50 ms timeout per byte