mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 17:10:24 +08:00
nrf/drivers/bluetooth: Reset evt_len to size of static buffer each iter.
For each iteration of polling BLE events from the Bluetooth LE stack.
This commit is contained in:
parent
c8fd71612b
commit
95bd20522a
@ -1071,8 +1071,8 @@ void SWI2_EGU2_IRQHandler(void) {
|
|||||||
sd_evt_handler(evt_id);
|
sd_evt_handler(evt_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t evt_len = sizeof(m_ble_evt_buf);
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
uint16_t evt_len = sizeof(m_ble_evt_buf);
|
||||||
uint32_t err_code = sd_ble_evt_get(m_ble_evt_buf, &evt_len);
|
uint32_t err_code = sd_ble_evt_get(m_ble_evt_buf, &evt_len);
|
||||||
if (err_code != NRF_SUCCESS) {
|
if (err_code != NRF_SUCCESS) {
|
||||||
// Possible error conditions:
|
// Possible error conditions:
|
||||||
|
Loading…
Reference in New Issue
Block a user