Skip to content

Commit

Permalink
update review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-josi-aws committed Jul 27, 2023
1 parent ffd87cb commit 21690e4
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions source/portable/NetworkInterface/RX/NetworkInterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,27 +491,19 @@ static int InitializeNetwork( void )
callback_ether_regist();

param.channel = ETHER_CHANNEL_0;
R_ETHER_Control( CONTROL_POWER_ON, param );
#if ( ETHER_CHANNEL_MAX >= 2 )
param.channel = ETHER_CHANNEL_1;
R_ETHER_Control( CONTROL_POWER_ON, param );
#endif

eth_ret = R_ETHER_Open_ZC2( ETHER_CHANNEL_0, ( const uint8_t * ) myethaddr, false );
R_ETHER_Control( CONTROL_POWER_ON, param ); /* PHY mode settings, module stop cancellation */

if( ETHER_SUCCESS != eth_ret )
{
return pdFALSE;
}

#if ( ETHER_CHANNEL_MAX >= 2 )
eth_ret = R_ETHER_Open_ZC2( ETHER_CHANNEL_1, ( const uint8_t * ) myethaddr, false );
eth_ret = R_ETHER_Open_ZC2( ETHER_CHANNEL_0, ( const uint8_t * ) myethaddr, false );

if( ETHER_SUCCESS != eth_ret )
{
return pdFALSE;
}
#endif
if( ETHER_SUCCESS != eth_ret )
{
return pdFALSE;
}

if( ether_receive_check_task_handle == NULL )
{
Expand Down

0 comments on commit 21690e4

Please sign in to comment.