From f9b0f41b58330b1e9f8e1a39218fe8bc2fd413ad Mon Sep 17 00:00:00 2001 From: tTh Date: Wed, 12 Dec 2018 16:10:02 +0100 Subject: [PATCH] re hop... --- serial/serial.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/serial/serial.c b/serial/serial.c index 87dd3d9..1de14ce 100644 --- a/serial/serial.c +++ b/serial/serial.c @@ -40,8 +40,8 @@ struct termios options; #if DEBUG_LEVEL fprintf(stderr, "%s ( %s %d )\n", __func__, port, baudrate); #endif -//OPEN THE UART -//The flags (defined in fcntl.h): +// OPEN THE UART +// The flags (defined in fcntl.h): // Access modes (use 1 of these): // O_RDONLY - Open for reading only. // O_RDWR - Open for reading and writing. @@ -96,9 +96,10 @@ tcsetattr(uart0, TCSANOW, &options); return uart0; } - /* -------------------------------------------------------------------- */ - +/* + * maybe we have to check for timeout ? + */ int getbyte(int fd) { unsigned char byte;