Key function ok on board.
This commit is contained in:
parent
079f480076
commit
c3e5571e37
|
@ -26,11 +26,11 @@ StatusCode HalCpp::Init(void)
|
|||
sdCardImpl->Init();
|
||||
}
|
||||
HalMakePtr::GetInstance()->CreateAllKeyHal(mKeys);
|
||||
auto checkPinValue = [](std::shared_ptr<HalCpp> impl) {
|
||||
LogInfo("HalCpp::CheckAllPinVauleThread start\n");
|
||||
impl->CheckAllPinVauleThread();
|
||||
};
|
||||
mCheckPinThread = std::thread(checkPinValue, shared_from_this());
|
||||
// auto checkPinValue = [](std::shared_ptr<HalCpp> impl) {
|
||||
// LogInfo("HalCpp::CheckAllPinVauleThread start\n");
|
||||
// impl->CheckAllPinVauleThread();
|
||||
// };
|
||||
// mCheckPinThread = std::thread(checkPinValue, shared_from_this());
|
||||
return CreateStatusCode(STATUS_CODE_OK);
|
||||
}
|
||||
StatusCode HalCpp::UnInit(void)
|
||||
|
|
|
@ -95,5 +95,6 @@ StatusCode HalMakePtr::CreateSdCardHal(std::shared_ptr<VSdCardHal> &impl)
|
|||
}
|
||||
StatusCode HalMakePtr::CreateAllKeyHal(std::vector<std::shared_ptr<VKeyControl>> &keys)
|
||||
{
|
||||
LogInfo("STATUS_CODE_VIRTUAL_FUNCTION.\n");
|
||||
return CreateStatusCode(STATUS_CODE_VIRTUAL_FUNCTION);
|
||||
}
|
|
@ -106,6 +106,6 @@ void KeyManager::KeyEventHappened(const std::string &keyName, const VirtualKeyEv
|
|||
LogError("monitor is nullptr.\n");
|
||||
return;
|
||||
}
|
||||
LogInfo("KeyManager::KeyEventHappened: key = %s, event = %d, time = %u\n", keyName.c_str(), event);
|
||||
LogInfo("KeyEventHappened: key = %s, event = %d, time ms = %u\n", keyName.c_str(), event, timeMs);
|
||||
monitor->KeyEventReport(keyName, static_cast<VirtualKeyEvent>(event), timeMs);
|
||||
}
|
Loading…
Reference in New Issue
Block a user