Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PolyORB-HI-C
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
PolyORB-HI-C
Commits
a562484b
Commit
a562484b
authored
Apr 06, 2020
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Plain Diff
Merge
https://github.com/openaadl/polyorb-hi-c
parents
0b0c6ab1
c8b6a809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/po_hi_main.c
src/po_hi_main.c
+16
-1
No files found.
src/po_hi_main.c
View file @
a562484b
...
...
@@ -8,6 +8,7 @@
* Copyright (C) 2010-2020 ESA & ISAE.
*/
#include <string.h>
#include <deployment.h>
/* included files from the generated code */
...
...
@@ -310,7 +311,7 @@ int __po_hi_initialize ()
#include <imaspex.h>
__po_hi_port_kind_t
pkind
;
__po_hi_port_t
tmp
;
__po_hi_port_t
tmp
,
tmp2
;
__po_hi_node_t
tmpnode
;
__po_hi_node_t
mynode
;
long
int
portno
;
...
...
@@ -422,6 +423,20 @@ int __po_hi_initialize ()
__PO_HI_DEBUG_CRITICAL
(
"[MAIN] Cannot open port %d, name=%s, return=%ld
\n
"
,
tmp
,
__po_hi_transport_get_model_name
(
tmp
),
portno
);
// In the case of duplicate AIR port, we iterate on the
// list of ports already initialized
for
(
tmp2
=
0
;
tmp2
<
tmp
;
tmp2
++
)
{
__PO_HI_DEBUG_CRITICAL
(
"Testing %d
\n
"
,
tmp2
);
if
(
!
strcmp
(
__po_hi_transport_get_model_name
(
tmp2
),
__po_hi_transport_get_model_name
(
tmp
)))
{
__PO_HI_DEBUG_CRITICAL
(
"[MAIN] Reuse port %d, from name=%s
\n
"
,
tmp2
,
__po_hi_transport_get_model_name
(
tmp2
),
portno
);
__po_hi_transport_air_port_init
(
tmp
,
__po_hi_transport_air_get_port
(
tmp2
));
break
;
}
}
}
else
{
__po_hi_transport_air_port_init
(
tmp
,
portno
);
__DEBUGMSG
(
"[MAIN] Port %d (name=%s) created, identifier = %ld
\n
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment