Subversion Repositories Projects

Rev

Rev 488 | Go to most recent revision | Show entire file | Ignore 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;
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')
123
    {
123
    {
Line 179... Line 179...
179
  mk_socket = open(tty_filename,O_RDWR | O_NOCTTY);
179
  mk_socket = open(tty_filename,O_RDWR | O_NOCTTY);
180
 
180
 
181
 
181
 
182
 
182
 
183
  struct termios termattr;
183
  struct termios termattr;
184
   speed_t baudRate;
184
  //   speed_t baudRate;
185
 
185
 
186
      /* Make a copy of the termios structure. */
186
      /* Make a copy of the termios structure. */
187
   tcgetattr(mk_socket, &termattr);
187
   tcgetattr(mk_socket, &termattr);
188
    termattr.c_cc[VMIN]=0;
188
    termattr.c_cc[VMIN]=0;
189
    termattr.c_cc[VTIME]=1;
189
    termattr.c_cc[VTIME]=1;