소스 검색

调试中同步IoHeater

shishenghui 1 개월 전
부모
커밋
69570fbf86
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      TIN001-PLC/Jet_Furance_PMC/Jet_Furance_PMC/Jet_Furance_PMC/FurancePMC/IoHeater.cpp

+ 1 - 1
TIN001-PLC/Jet_Furance_PMC/Jet_Furance_PMC/Jet_Furance_PMC/FurancePMC/IoHeater.cpp

@@ -40,7 +40,7 @@ void IoHeater::initialize()
 {
 	char opName[MAX_NAME_LEN];
 	sprintf(opName, "%s.SetParameters", this->id);
-	auto op = OP->subscribe(opName);
+	auto op = OP->subscribe(opName,this);
 	op->addExec([]()->OperatorStatusEnum {
 		OperatorNode* op = OP->currentRoot;
 		IoHeater* device = (IoHeater*)op->device;