ソースを参照

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