diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-08-11 08:39:50 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-08-11 08:53:02 -0500 |
| commit | 11dd3a260e53852ca3ccaf609040ca26bd56e665 (patch) | |
| tree | 6bf428b3ca6462608cc7a2d046cf7a064d5fdf5e /ports/nrf/bluetooth | |
| parent | d9ee2d28a03cdb13b0c6e33a6408293574bcbfef (diff) | |
nrf: Use RUN_BACKGROUND_TASKS
Diffstat (limited to 'ports/nrf/bluetooth')
| -rw-r--r-- | ports/nrf/bluetooth/ble_uart.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ports/nrf/bluetooth/ble_uart.c b/ports/nrf/bluetooth/ble_uart.c index 91d10cff1..d83cf3980 100644 --- a/ports/nrf/bluetooth/ble_uart.c +++ b/ports/nrf/bluetooth/ble_uart.c @@ -138,9 +138,7 @@ void ble_uart_init(void) { m_cccd_enabled = false; while (!m_cccd_enabled) { -#ifdef MICROPY_VM_HOOK_LOOP - MICROPY_VM_HOOK_LOOP -#endif + RUN_BACKGROUND_TASKS; } } @@ -150,9 +148,7 @@ bool ble_uart_connected(void) { char ble_uart_rx_chr(void) { while (isBufferEmpty(&m_rx_ring_buffer)) { -#ifdef MICROPY_VM_HOOK_LOOP - MICROPY_VM_HOOK_LOOP -#endif + RUN_BACKGROUND_TASKS; } uint8_t byte; |
