nrf: Feed the watchdog from the BLE TX polling loop

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
v1.13-wasp-os
Daniel Thompson 2020-12-26 15:11:43 +00:00
parent d198d2907a
commit 048bb2da83
1 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@
#include "ble.h" // sd_ble_uuid_encode
#include "drivers/flash.h"
#include "mphalport.h"
#include "wdt.h"
#if MICROPY_HW_USB_CDC
@ -701,7 +702,7 @@ void ble_drv_attr_s_notify(uint16_t conn_handle, uint16_t handle, uint16_t len,
hvx_params.p_data = p_data;
while (m_tx_in_progress > MAX_TX_IN_PROGRESS) {
;
wdt_feed(false);
}
BLE_DRIVER_LOG("Request TX, m_tx_in_progress: %u\n", m_tx_in_progress);