b
This commit is contained in:
@@ -216,7 +216,7 @@ void commandprocess::WriteStateMachine(void)
|
||||
step = 0;//返回上一个步骤
|
||||
if(timeout_count > 5)//如果指令发5次还没发出去,那么结束发送
|
||||
{
|
||||
qDebug() << "command set value fail";
|
||||
qDebug() << "command set value time out fail";
|
||||
step = 0;
|
||||
status.m_Mode = Nop_Mode;
|
||||
status.transmit.isWaitingforACK = false;
|
||||
@@ -242,6 +242,7 @@ void commandprocess::WriteStateMachine(void)
|
||||
//收到Value
|
||||
if(status.transmit.isWaitingforACK == false)
|
||||
{
|
||||
qDebug() << "command set value ok";
|
||||
step = 0;
|
||||
status.m_Mode = Nop_Mode;
|
||||
status.transmit.isWaitingforACK = false;
|
||||
|
||||
Reference in New Issue
Block a user