stm32f0: usart: return EAGAIN
This commit is contained in:
parent
5b97afd1bc
commit
20aec106c0
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ int console_getline(struct usart_console *console, char *buf, size_t n)
|
|||
*p = '\0';
|
||||
}
|
||||
|
||||
return -E_AGAIN;
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
static ssize_t usart_read(void *cookie, char *buf, size_t n)
|
||||
|
|
Loading…
Add table
Reference in a new issue