Commit 85fbcd64 authored by Jean-Claude BAU's avatar Jean-Claude BAU

Fix issue slaveOnly option

Fix problem related to code optimization
parent 332e11d9
......@@ -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) {
......
......@@ -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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment