X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_tmr.c;h=28663d8428cc0fd5f61dad96921ecef85725815a;hb=b3d5c17f74361fcdcb9b9febff450292197e3a57;hp=432a3d3683e03e6fbda4256c01bad47a1e747261;hpb=66f88e54e39e6b46cfc47bd8afeaea1cb831d0cc;p=o-du%2Fl2.git diff --git a/src/du_app/du_tmr.c b/src/du_app/du_tmr.c index 432a3d368..28663d842 100644 --- a/src/du_app/du_tmr.c +++ b/src/du_app/du_tmr.c @@ -47,7 +47,7 @@ bool duChkTmr(PTR cb, int16_t tmrEvnt) { case EVENT_E2_SETUP_TMR: { - if(((E2apDb *)cb)->e2TimersInfo.e2Timers.e2SetupTimer.tmrEvnt == EVENT_E2_SETUP_TMR) + if(((CmTimer *)cb)->tmrEvnt == EVENT_E2_SETUP_TMR) { DU_LOG("\nERROR --> DU_APP : duChkTmr: Invalid tmr Evnt [%d]", tmrEvnt); return TRUE; @@ -75,7 +75,6 @@ bool duChkTmr(PTR cb, int16_t tmrEvnt) void duStartTmr(PTR cb, int16_t tmrEvnt, uint8_t timerValue) { - E2apDb *e2apDb; CmTmrArg arg; arg.wait = 0; @@ -83,10 +82,11 @@ void duStartTmr(PTR cb, int16_t tmrEvnt, uint8_t timerValue) { case EVENT_E2_SETUP_TMR: { - e2apDb = ((E2apDb *)cb); - DU_TMR_CALCUATE_WAIT(arg.wait, timerValue, duCb.duTimersInfo.tmrRes); + CmTimer *e2SetupTimer; + e2SetupTimer = ((CmTimer *)cb); + TMR_CALCUATE_WAIT(arg.wait, timerValue, duCb.duTimersInfo.tmrRes); - arg.timers = &e2apDb->e2TimersInfo.e2Timers.e2SetupTimer; + arg.timers = e2SetupTimer; arg.max = MAX_E2_SETUP_TMR; break; }