Browse Source

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

micsat 4 years ago
parent
commit
e757aaf6eb
1 changed files with 2 additions and 2 deletions
  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",