1、【修改】FreeModbus主机释放资源部分源码,解决了偶尔会出现获取信号量失败的Bug。

Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
armink 2014-01-08 19:16:20 +08:00
parent b02d228c7b
commit b04a59481d
1 changed files with 1 additions and 2 deletions

View File

@ -91,8 +91,7 @@ BOOL xMBMasterRunResTake( LONG lTimeOut )
*/
void vMBMasterRunResRelease( void )
{
/* Clear up resource when need release resource. */
rt_sem_control(&xMasterRunRes, RT_IPC_CMD_RESET, 0);
/* release resource */
rt_sem_release(&xMasterRunRes);
}