@@ -46,6 +46,7 @@ Snap7_buf& Snap7_buf::operator =(const Snap7_buf& other)
m_size = other.m_size;
m_variable_information_vector=other.m_variable_information_vector;
}
+ return *this;
Snap7_buf::~Snap7_buf()
{
@@ -68,6 +68,7 @@ Error_manager Task_Base::task_reset()
m_task_over_time = std::chrono::milliseconds(TASK_OVER_TIME_DEFAULT); //默认10秒
m_task_error_manager.error_manager_clear_all();
+ return Error_code::SUCCESS;
//更新任务单