mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
32 lines
1,010 B
Diff
32 lines
1,010 B
Diff
--- a/src/core/device_controller.c
|
|
+++ b/src/core/device_controller.c
|
|
@@ -4282,6 +4282,14 @@ int ProcessControllerAdded(int cont_inst
|
|
goto exit;
|
|
}
|
|
|
|
+#if defined(E2ESESSION_EXPERIMENTAL_USP_V_1_2)
|
|
+ err = ProcessControllerE2ESessionAdded(cont);
|
|
+ if (err != USP_ERR_OK)
|
|
+ {
|
|
+ goto exit;
|
|
+ }
|
|
+#endif
|
|
+
|
|
// Exit if unable to get the object instance numbers present in this controller's MTP table
|
|
USP_SNPRINTF(path, sizeof(path), "%s.%d.MTP", device_cont_root, cont_instance);
|
|
err = DATA_MODEL_GetInstances(path, &iv);
|
|
@@ -4323,14 +4331,6 @@ int ProcessControllerAdded(int cont_inst
|
|
DEVICE_MQTT_UpdateControllerTopics();
|
|
#endif
|
|
|
|
-#if defined(E2ESESSION_EXPERIMENTAL_USP_V_1_2)
|
|
- err = ProcessControllerE2ESessionAdded(cont);
|
|
- if (err != USP_ERR_OK)
|
|
- {
|
|
- goto exit;
|
|
- }
|
|
-#endif
|
|
-
|
|
// If the code gets here, then we successfully retrieved all data about the controller (even if some of the MTPs were not added)
|
|
err = USP_ERR_OK;
|
|
|