fix: update services/native/src/power_mgr_service.cpp.

Signed-off-by: hxf233333 <huxiaofei11@huawei.com>
This commit is contained in:
hxf233333 2024-11-15 07:38:03 +00:00 committed by Gitee
parent 522d40b2ce
commit 3317316703
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -99,6 +99,7 @@ void PowerMgrService::OnStart()
return;
}
ready_ = true;
system::SetParameter("bootevent.powermgr.ready", "true");
POWER_HILOGI(COMP_SVC, "Add system ability success");
}
@ -122,7 +123,6 @@ bool PowerMgrService::Init()
screenOffPreController_ = std::make_shared<ScreenOffPreController>(powerStateMachine_);
screenOffPreController_->Init();
}
system::SetParameter("bootevent.powermgr.ready", "true");
POWER_HILOGI(COMP_SVC, "Init success");
return true;
}