Move writing to shared page to the nwm init
This commit is contained in:
parent
ffe94421b2
commit
752cfcaaae
4 changed files with 26 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue