|
@@ -422,18 +422,21 @@ Error_manager Dispatch_plc::check_response_from_plc()
|
|
|
std::unique_lock<std::mutex> t_lock(m_lock);
|
|
|
|
|
|
|
|
|
+
|
|
|
//need, 调试代码, 延时10s, 直接返回成功
|
|
|
if ( std::chrono::system_clock::now() - m_start_time > std::chrono::seconds(10) )
|
|
|
{
|
|
|
return Error_code::SUCCESS;
|
|
|
}
|
|
|
- //返回没有收到数据
|
|
|
+ //返回没有收到数据
|
|
|
else
|
|
|
{
|
|
|
return Error_code::NODATA;
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
//检查唯一码
|
|
|
if ( m_response_key == m_request_key )
|
|
|
{
|