Skip to content
Snippets Groups Projects
Commit ab9b10cf authored by rahix's avatar rahix
Browse files

Merge 'serial: Unblock if the queue is full'

Closes #218

See merge request !422
parents 593be3c3 f7719151
Branches master
No related tags found
No related merge requests found
...@@ -119,8 +119,12 @@ void epic_uart_write_str(const char *str, size_t length) ...@@ -119,8 +119,12 @@ void epic_uart_write_str(const char *str, size_t length)
SERIAL_WRITE_NOTIFY, SERIAL_WRITE_NOTIFY,
eSetBits eSetBits
); );
if (bytes_sent == 0) {
vTaskDelay(1);
} else {
portYIELD(); portYIELD();
} }
}
} while (index < length); } while (index < length);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment