mirror of
https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.git
synced 2024-09-01 08:09:25 +08:00
1、【修改】FreeModbus主机释放资源部分源码,解决了偶尔会出现获取信号量失败的Bug。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
b02d228c7b
commit
b04a59481d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user