Move writing to shared page to the nwm init

This commit is contained in:
James Rowe 2018-02-17 22:14:21 -07:00
parent ffe94421b2
commit 752cfcaaae
4 changed files with 26 additions and 16 deletions

View file

@ -83,9 +83,6 @@ void Init() {
update_time_event =
CoreTiming::RegisterEvent("SharedPage::UpdateTimeCallback", UpdateTimeCallback);
CoreTiming::ScheduleEvent(0, update_time_event);
SetWifiLinkLevel(WifiLinkLevel::POOR);
SetMacAddress(DefaultMac);
}
void SetMacAddress(const MacAddress& addr) {
@ -96,4 +93,4 @@ void SetWifiLinkLevel(WifiLinkLevel level) {
shared_page.wifi_link_level = static_cast<u8>(level);
}
} // namespace
} // namespace SharedPage