hopefully get the compiler to shut up

This commit is contained in:
Arisotura
2023-11-03 21:33:13 +01:00
parent e4f4e94694
commit f188c2cf1a
6 changed files with 8 additions and 9 deletions

View File

@ -937,7 +937,7 @@ void LoadUserSettingsFromConfig(Firmware& firmware)
bool rep = false;
auto& header = firmware.GetHeader();
memcpy(&mac, header.MacAddress.data(), sizeof(MacAddress));
memcpy(&mac, header.MacAddr.data(), sizeof(MacAddress));
MacAddress configuredMac;
@ -961,7 +961,7 @@ void LoadUserSettingsFromConfig(Firmware& firmware)
if (rep)
{
mac[0] &= 0xFC; // ensure the MAC isn't a broadcast MAC
header.MacAddress = mac;
header.MacAddr = mac;
header.UpdateChecksum();
}