Merge pull request #245 from Telecominfraproject/post_enable_fix

post fix
This commit is contained in:
Joshua Jeyaraj
2019-02-12 15:14:00 +05:30
committed by GitHub

View File

@@ -240,7 +240,7 @@ static bool _handle_post_enable(const Component *comp, OCMPMessageFrame *pMsg)
OCMPMessageFrame *buffer = NULL;
const Post *postCmd = &comp->driver->post[(pMsg->message.action) - 1];
if (postCmd && postCmd->cb_postCmd) {
ret = postCmd->cb_postCmd((void **)buffer);
ret = postCmd->cb_postCmd(&buffer);
if (ret) {
Util_enqueueMsg(postRxMsgQueue, semPOSTMsg, (uint8_t *)buffer);
}