re hop...

This commit is contained in:
tTh 2018-12-12 16:10:02 +01:00
parent 0514cc5d10
commit f9b0f41b58

View File

@ -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;