Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
85fbcd64
Commit
85fbcd64
authored
Feb 07, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue slaveOnly option
Fix problem related to code optimization
parent
332e11d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ppsi.h
include/ppsi/ppsi.h
+1
-1
open-close.c
proto-standard/open-close.c
+1
-1
No files found.
include/ppsi/ppsi.h
View file @
85fbcd64
...
...
@@ -182,7 +182,7 @@ static inline int is_delayMechanismE2E(struct pp_instance *ppi) {
}
static
inline
int
is_slaveOnly
(
defaultDS_t
*
def
)
{
return
CONFIG_HAS_CODEOPT_
SINGLE_PORT
&&
(
CONFIG_HAS_CODEOPT_SO_ENABLED
||
def
->
slaveOnly
)
;
return
CONFIG_HAS_CODEOPT_
EPC_ENABLED
==
0
&&
def
->
slaveOnly
;
}
static
inline
int
get_numberPorts
(
defaultDS_t
*
def
)
{
...
...
proto-standard/open-close.c
View file @
85fbcd64
...
...
@@ -108,7 +108,7 @@ int pp_init_globals(struct pp_globals *ppg, struct pp_runtime_opts *pp_rt_opts)
def
->
slaveOnly
=
FALSE
;
}
}
def
->
slaveOnly
=
is_slaveOnly
(
def
);
// Done to take into code optimization in is_slaveOnly() macro
if
(
is_slaveOnly
(
def
)
)
{
if
(
get_numberPorts
(
def
)
>
1
)
{
...
...
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