Procházet zdrojové kódy

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

micsat před 4 roky
rodič
revize
e757aaf6eb
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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",