In Pathch Progammer source code ,
mac_status = nvmem_get_mac_address(cMacFromEeprom);
mac_status !=0 (This value varies !=0 is invalid)
if (mac_status == 0) { // zero out MCAST bit if set /
/cMacFromEeprom[0] &= 0xfe;
while (return_status) {
return_status = nvmem_set_mac_address(cMacFromEeprom); }
}
This part is not execute。 I don't understand,nvmem_get_mac_address return successful ,,set the MAC?
//If MAC does not exist, turn on LED1. It is recommended that the user will write a valid mac address.
if (mac_status != 0) turnLedOn(1);