File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
source/portable/NetworkInterface/RX Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -422,15 +422,12 @@ static int InitializeNetwork( void )
422422 ether_return_t eth_ret ;
423423 BaseType_t return_code = pdFALSE ;
424424 ether_param_t param ;
425- uint8_t myethaddr [ 6 ] =
426- {
427- configMAC_ADDR0 ,
428- configMAC_ADDR1 ,
429- configMAC_ADDR2 ,
430- configMAC_ADDR3 ,
431- configMAC_ADDR4 ,
432- configMAC_ADDR5
433- }; /*XXX Fix me */
425+
426+ /* Read the mac address after it has been initilized by the FreeRTOS IP Stack, rather than from defines
427+ * as the mac address is usually read from the EEPROM, and it might be different to the mac address in
428+ * the defines, especially in production environments
429+ */
430+ const uint8_t * myethaddr = FreeRTOS_GetMACAddress ();
434431
435432 R_ETHER_PinSet_CHANNEL_0 ();
436433 R_ETHER_Initial ();
You can’t perform that action at this time.
0 commit comments