mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ble(fix): Fixed crash issue when reset event queue
This commit is contained in:
parent
9b0e4ee24a
commit
3cdbb0406d
@ -134,6 +134,7 @@ npl_freertos_eventq_init(struct ble_npl_eventq *evq)
|
||||
eventq->q = xQueueCreate(ble_freertos_total_event_cnt, sizeof(struct ble_npl_eventq *));
|
||||
BLE_LL_ASSERT(eventq->q);
|
||||
} else {
|
||||
eventq = (struct ble_npl_eventq_freertos*)evq->eventq;
|
||||
xQueueReset(eventq->q);
|
||||
}
|
||||
#else
|
||||
@ -145,6 +146,7 @@ npl_freertos_eventq_init(struct ble_npl_eventq *evq)
|
||||
eventq->q = xQueueCreate(ble_freertos_total_event_cnt, sizeof(struct ble_npl_eventq *));
|
||||
BLE_LL_ASSERT(eventq->q);
|
||||
} else {
|
||||
eventq = (struct ble_npl_eventq_freertos*)evq->eventq;
|
||||
xQueueReset(eventq->q);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user