preparation du plan B
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h> //Used for UART
|
||||
#include <fcntl.h> //Used for UART
|
||||
#include <termios.h> //Used for UART
|
||||
#include <termios.h> //Used for UART
|
||||
|
||||
#include "serial.h"
|
||||
|
||||
@@ -88,7 +88,7 @@ if (uart0 < 0)
|
||||
|
||||
|
||||
baudbits = baudrate2const(baudrate);
|
||||
#if DEBUG_LEVEL > 1
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, "%d -> 0x%04x\n", baudrate, baudbits);
|
||||
#endif
|
||||
|
||||
@@ -107,7 +107,7 @@ options.c_cc[VMIN] = 1; /* ask for blocking read */
|
||||
tcflush(uart0, TCIOFLUSH);
|
||||
tcsetattr(uart0, TCSANOW, &options);
|
||||
|
||||
tcflush(uart0, TCIFLUSH); /* do it again, sam */
|
||||
tcflush(uart0, TCIOFLUSH); /* do it again, sam */
|
||||
|
||||
if (verbosity) {
|
||||
fprintf(stderr, "%s %s uart0 = %d\n",
|
||||
|
||||
Reference in New Issue
Block a user