terminal is working, but expect some bugs...
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
#include "serial.h"
|
||||
|
||||
extern int verbosity;
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
static int baudrate2const(int bauds)
|
||||
{
|
||||
@@ -107,6 +109,11 @@ tcsetattr(uart0, TCSANOW, &options);
|
||||
|
||||
tcflush(uart0, TCIFLUSH); /* do it again, sam */
|
||||
|
||||
if (verbosity) {
|
||||
fprintf(stderr, "%s %s uart0 = %d\n",
|
||||
__FILE__, __func__, uart0);
|
||||
}
|
||||
|
||||
return uart0;
|
||||
}
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user