nrf: ble_uart: Feed the 'dog when transmitting characters

On systems that cannot feed the watchdog from an ISR (e.g. anything
without a button) then tab completion is risky because the watchdog might
fire before all the options are listed. Fix this by feeding the dog from
the tx routine.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
wasp-os
Daniel Thompson 2020-08-09 19:58:20 +01:00
parent 9d9a952019
commit 773d3b6d40
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ int mp_hal_stdin_rx_chr(void) {
}
void mp_hal_stdout_tx_strn(const char *str, size_t len) {
wdt_feed(false);
// Not connected: drop output
if (!ble_uart_enabled()) return;