Skip to content
Snippets Groups Projects
Commit f7719151 authored by schneider's avatar schneider
Browse files

fix(serial): Unblock if the queue is full

For some reason a portYIELD() is not enough to give the serial task the
option to run. I tried vTaskDelay() and that works. To not block more than
needed portYIELD() is still called when the queue is not full and only
call vTaskDelay() when it is full.

Closes #218
parent 3446bbbb
Branches
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