瀏覽代碼

调试中同步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;