network specific configuration
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
t_configBlock defaultConfigBlock = {
|
||||
.configMagic = CONFIG_MAGIC,
|
||||
.deviceName = "MainsCnt",
|
||||
.networkspecific.macAddress = { 0x00, 0xA0, 0x57, 0x05, 0x3E, 0x0F },
|
||||
.networkspecific.lan.macAddress = { 0x00, 0xA0, 0x57, 0x05, 0x3E, 0x0F },
|
||||
.ntpServer = "0.de.pool.ntp.org",
|
||||
.deviceId = "MainsCnt01",
|
||||
.sharedSecret = "sharedSecretGanzGeheim",
|
||||
|
@ -211,7 +211,7 @@ static void wizPhyLinkHandler(void *handle) {
|
||||
int wizInit() {
|
||||
config = getConfig();
|
||||
netInfo.dhcp = NETINFO_DHCP;
|
||||
memcpy(netInfo.mac, config->networkspecific.macAddress, 6);
|
||||
memcpy(netInfo.mac, config->networkspecific.lan.macAddress, 6);
|
||||
|
||||
coloredMsg(LOG_BLUE, "wizI, resetting Ethernet module");
|
||||
wizReset(true);
|
||||
|
Reference in New Issue
Block a user