increase uart threads to highest priority

This commit is contained in:
Eric Betts
2023-11-17 17:59:02 -08:00
parent c7674c9d0e
commit ca96807cb7
+2
View File
@@ -71,6 +71,7 @@ size_t seader_uart_process_buffer(Seader* seader, uint8_t* cmd, size_t cmd_len)
int32_t seader_uart_worker(void* context) {
Seader* seader = (Seader*)context;
SeaderUartBridge* seader_uart = seader->uart;
furi_thread_set_current_priority(FuriThreadPriorityHighest);
memcpy(&seader_uart->cfg, &seader_uart->cfg_new, sizeof(SeaderUartConfig));
@@ -153,6 +154,7 @@ int32_t seader_uart_tx_thread(void* context) {
Seader* seader = (Seader*)context;
SeaderUartBridge* seader_uart = seader->uart;
furi_thread_set_current_priority(FuriThreadPriorityHighest);
while(1) {
uint32_t events =
furi_thread_flags_wait(WORKER_ALL_TX_EVENTS, FuriFlagWaitAny, FuriWaitForever);