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;