Secure poke management in case of timeout during detection
@@ -113,6 +113,8 @@ uint8_t PortMng_PokePort(uint8_t PortNbr)
* @return true if a port have been poke else false
******************************************************************************/
error_return_t PortMng_PokeNextPort(void)
+{
+ if ((ctx.port.activ != NBR_PORT) || (ctx.node.node_id == 1))
{
for (uint8_t port = 0; port < NBR_PORT; port++)
{
@@ -130,6 +132,7 @@ error_return_t PortMng_PokeNextPort(void)
}
}
}
+ }
PortMng_Reset();
return FAILED;
}
