ソースを参照

fixup! Common service "Create" added, CipCallback added in class struct

micsat 4 年 前
コミット
e757aaf6eb
1 ファイル変更2 行追加2 行削除
  1. 2 2
      source/src/cip/cipcommon.c

+ 2 - 2
source/src/cip/cipcommon.c

@@ -1290,8 +1290,8 @@ EipStatus Create(CipInstance *RESTRICT const instance,
     // TODO: handle possible error of "AddCipInstances", instance!=0
 
     /* Call the PostSetCallback if the class provides one. */
-    if (NULL != class->PostSetCallback) {
-      class->PostSetCallback(new_instance, message_router_request,
+    if (NULL != class->PostCreateCallback) {
+      class->PostCreateCallback(new_instance, message_router_request,
                              message_router_response);
     }
     OPENER_TRACE_INFO("Instance number %d created\n",