Fix syntax errors
This commit is contained in:
parent
8234f9d75c
commit
0d4b50a7c0
1 changed files with 2 additions and 2 deletions
4
uart.c
4
uart.c
|
|
@ -13,10 +13,10 @@ bool is_whitespace(char character) {
|
|||
}
|
||||
|
||||
void read_word(uart_inst_t *uart, char *buffer, int buffersize, bool *eol) {
|
||||
for (uint i == 0; i < buffersize - 1; ++i) {
|
||||
for (uint i = 0; i < (buffersize - 1); ++i) {
|
||||
buffer[i] = uart_getc(uart);
|
||||
if (is_whitespace(buffer[i])) {
|
||||
buffer[i + 1] = '\0'
|
||||
buffer[i + 1] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue