preparation du plan B

This commit is contained in:
phyto
2019-05-22 09:50:25 +02:00
parent dcc927418b
commit 1b03d60613
9 changed files with 46 additions and 21 deletions

View File

@@ -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",