Bläddra i källkod

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

micsat 4 år sedan
förälder
incheckning
e757aaf6eb
1 ändrade filer med 2 tillägg och 2 borttagningar
  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
     // TODO: handle possible error of "AddCipInstances", instance!=0
 
 
     /* Call the PostSetCallback if the class provides one. */
     /* 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);
                              message_router_response);
     }
     }
     OPENER_TRACE_INFO("Instance number %d created\n",
     OPENER_TRACE_INFO("Instance number %d created\n",