fix typo.

This commit is contained in:
Gatsby Van
2023-12-23 13:59:00 +08:00
parent 7b1c20e054
commit 4b79a1436a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -137,7 +137,7 @@ L2_SCHD_EVENT* L2_CreatNewSchdEvent(L2_SCHD_POOL* schdPool, L2_EVENT_TYPE event,
return NULL; return NULL;
} }
schdEvent->eventId = schdPool->envCnt++; schdEvent->eventId = schdPool->envCnt++;
schdEvent->ocurrCnt = 0; schdEvent->occurCnt = 0;
schdEvent->l2Event.event = event; schdEvent->l2Event.event = event;
schdEvent->l2Event.msg = NULL; schdEvent->l2Event.msg = NULL;
schdEvent->isSchd = false; schdEvent->isSchd = false;
@@ -327,7 +327,7 @@ void L2_EventPoolHandler(L2_INST* instPtr){
list_remove(pool->schdList, node); list_remove(pool->schdList, node);
} }
else { else {
event->ocurrCnt++; event->occurCnt++;
} }
} }
} }
+1 -1
View File
@@ -32,7 +32,7 @@ typedef struct {
bool isVolatile; bool isVolatile;
L2_EVENT l2Event; L2_EVENT l2Event;
uint32_t eventId; uint32_t eventId;
uint32_t ocurrCnt; uint32_t occurCnt;
uint32_t schdFrame; uint32_t schdFrame;
uint32_t schdSlot; uint32_t schdSlot;
} L2_SCHD_EVENT; } L2_SCHD_EVENT;