mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-03 11:58:24 +00:00
Merge pull request #245 from Telecominfraproject/post_enable_fix
post fix
This commit is contained in:
@@ -240,7 +240,7 @@ static bool _handle_post_enable(const Component *comp, OCMPMessageFrame *pMsg)
|
|||||||
OCMPMessageFrame *buffer = NULL;
|
OCMPMessageFrame *buffer = NULL;
|
||||||
const Post *postCmd = &comp->driver->post[(pMsg->message.action) - 1];
|
const Post *postCmd = &comp->driver->post[(pMsg->message.action) - 1];
|
||||||
if (postCmd && postCmd->cb_postCmd) {
|
if (postCmd && postCmd->cb_postCmd) {
|
||||||
ret = postCmd->cb_postCmd((void **)buffer);
|
ret = postCmd->cb_postCmd(&buffer);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
Util_enqueueMsg(postRxMsgQueue, semPOSTMsg, (uint8_t *)buffer);
|
Util_enqueueMsg(postRxMsgQueue, semPOSTMsg, (uint8_t *)buffer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user