Rev 488 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 488 | Rev 522 | ||
|---|---|---|---|
| Line 113... | Line 113... | ||
| 113 | int read_from_mk() |
113 | int read_from_mk() |
| 114 | { |
114 | { |
| 115 | char in_char='#'; |
115 | char in_char='#'; |
| 116 | int count=0; |
116 | int count=0; |
| 117 | int r=0; |
117 | int r=0; |
| 118 | int i=0; |
118 | // int i=0; |
| Line 119... | Line 119... | ||
| 119 | 119 | ||
| 120 | int p=0; |
120 | int p=0; |
| 121 | printf("starting read\n"); |
121 | printf("starting read\n"); |
| 122 | while(in_char!='\r') |
122 | while(in_char!='\r') |
| Line 179... | Line 179... | ||
| 179 | mk_socket = open(tty_filename,O_RDWR | O_NOCTTY); |
179 | mk_socket = open(tty_filename,O_RDWR | O_NOCTTY); |
| Line 180... | Line 180... | ||
| 180 | 180 | ||
| 181 | 181 | ||
| Line 182... | Line 182... | ||
| 182 | 182 | ||
| 183 | struct termios termattr; |
183 | struct termios termattr; |
| 184 | speed_t baudRate; |
184 | // speed_t baudRate; |
| 185 | 185 | ||