Skip to content

Commit

Permalink
#110 default MAC address on empty EEPROM
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jun 6, 2017
1 parent 1faca11 commit c390d0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eez_psu_sketch/persist_conf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ static void initDevice2() {

strcpy(devConf2.ntpServer, CONF_DEFAULT_NTP_SERVER);

uint8_t macAddress[] = ETHERNET_MAC_ADDRESS;
memcpy(devConf2.ethernetMacAddress, macAddress, 6);

devConf2.dstRule = datetime::DST_RULE_OFF;
}

Expand Down

0 comments on commit c390d0e

Please sign in to comment.