Skip to content

Commit dda73e8

Browse files
committed
update review comments
1 parent ffd87cb commit dda73e8

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

source/portable/NetworkInterface/RX/NetworkInterface.c

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -491,27 +491,19 @@ static int InitializeNetwork( void )
491491
callback_ether_regist();
492492

493493
param.channel = ETHER_CHANNEL_0;
494-
R_ETHER_Control( CONTROL_POWER_ON, param );
495-
#if ( ETHER_CHANNEL_MAX >= 2 )
496-
param.channel = ETHER_CHANNEL_1;
497-
R_ETHER_Control( CONTROL_POWER_ON, param );
498-
#endif
499-
500-
eth_ret = R_ETHER_Open_ZC2( ETHER_CHANNEL_0, ( const uint8_t * ) myethaddr, false );
494+
eth_ret = R_ETHER_Control( CONTROL_POWER_ON, param ); /* PHY mode settings, module stop cancellation */
501495

502496
if( ETHER_SUCCESS != eth_ret )
503497
{
504498
return pdFALSE;
505499
}
506500

507-
#if ( ETHER_CHANNEL_MAX >= 2 )
508-
eth_ret = R_ETHER_Open_ZC2( ETHER_CHANNEL_1, ( const uint8_t * ) myethaddr, false );
501+
eth_ret = R_ETHER_Open_ZC2( ETHER_CHANNEL_0, ( const uint8_t * ) myethaddr, ETHER_FLAG_OFF );
509502

510-
if( ETHER_SUCCESS != eth_ret )
511-
{
512-
return pdFALSE;
513-
}
514-
#endif
503+
if( ETHER_SUCCESS != eth_ret )
504+
{
505+
return pdFALSE;
506+
}
515507

516508
if( ether_receive_check_task_handle == NULL )
517509
{

0 commit comments

Comments
 (0)