Fix bounds check using a define instead of table size. The bounds check was incorrectly picking a define that wasn't even the last in the table. It now uses the size of the table.

pull/13055/head
Paul Szczeanek 2020-06-02 15:11:10 +01:00
parent c7759fe505
commit 0affb73747
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ dmCb_t dmCb;
/*************************************************************************************************/
static void dmHciEvtCback(hciEvt_t *pEvent)
{
WSF_ASSERT(pEvent->hdr.event <= HCI_LE_READ_ANTENNA_INFO_CMD_CMPL_CBACK_EVT);
WSF_ASSERT(pEvent->hdr.event < sizeof(dmHciToIdTbl));
/* if DM not resetting or resetting but incoming event is HCI reset sequence complete event */
if (!dmCb.resetting || (pEvent->hdr.event == HCI_RESET_SEQ_CMPL_CBACK_EVT))