| 107 | } |
| 108 | |
| 109 | static void uart_set_timer(bool force) { |
| 110 | if (uart_timer_should_run()) { |
| 111 | if (force || !sched_active(SCHED_UART)) { |
| 112 | sched_set(SCHED_UART, uart_char_ticks()); |
| 113 | } |
| 114 | } else { |
| 115 | sched_clear(SCHED_UART); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | static void uart_reset_rx_timeout(void) { |
| 120 | uart.rxTimeout = false; |
no test coverage detected