Browse Source

this change make life better

phyto 6 months ago
parent
commit
565c70b54f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      serial/serial.c

+ 1
- 1
serial/serial.c View File

@@ -62,7 +62,7 @@ fprintf(stderr, ">>> %s ( %s %d )\n", __func__, port, baudrate);
62 62
 // shall not cause the terminal device to become the controlling terminal
63 63
 // for the process.
64 64
 
65
-uart0 = open(port, O_RDONLY | O_NOCTTY);
65
+uart0 = open(port, O_RDWR | O_NOCTTY);
66 66
 if (uart0 < 0)
67 67
 	{
68 68
 	perror("unable to open uart ");

Loading…
Cancel
Save