Subversion Repositories libSerial

Rev

Rev 10 | Rev 14 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 13
Line 16... Line 16...
16
  context->complete = 0;
16
  context->complete = 0;
17
  context->readLines = readLines; // if readlines , then we look for \r at the end of a line and skip control chars 
17
  context->readLines = readLines; // if readlines , then we look for \r at the end of a line and skip control chars 
18
  context->buffer[0] = 0;
18
  context->buffer[0] = 0;
19
}
19
}
20
 
20
 
21
 
-
 
22
 
-
 
23
 
-
 
24
 
-
 
25
 
-
 
26
//
-
 
27
editBufferReturn  readLine(usart_ctl *ctl, editBuffer *context)
21
editBufferReturn  readLine(usart_ctl *ctl, editBuffer *context)
28
{
22
{
29
  int cnt = PollSerial(ctl);
23
  int cnt = PollSerial(ctl);
30
  if (!cnt)
24
  if (!cnt)
31
    return EDIT_NULL;
25
    return EDIT_NULL;