aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Campbell <leecam@google.com>2016-03-03 15:52:44 -0800
committerLee Campbell <leecam@google.com>2016-03-03 15:52:44 -0800
commitf7deda763f17f374396393ff8d01e036ea46d470 (patch)
tree53664508f19910749c1ee9da4bb13f5195dd9666
parent2f7e32cd7e127d36a09a85d8da612f3f7f8713d5 (diff)
downloadperipheralmanager-f7deda763f17f374396393ff8d01e036ea46d470.tar.gz
Fix crash loop when HAL can't be found
When there is no HAL provided PIO will just run with no registered devices Change-Id: Id8f3a7a69b18d5460996d7528d5cc99d1323821e
-rw-r--r--daemon/peripheral_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/peripheral_manager.cc b/daemon/peripheral_manager.cc
index cf7476e..0ab602d 100644
--- a/daemon/peripheral_manager.cc
+++ b/daemon/peripheral_manager.cc
@@ -111,7 +111,7 @@ bool PeripheralManager::InitHal() {
const hw_module_t* module = nullptr;
if (hw_get_module(PERIPHERAL_IO_HARDWARE_MODULE_ID, &module) != 0) {
LOG(ERROR) << "Failed to load HAL" << module;
- return false;
+ return true;
}
const peripheral_io_module_t* peripheral_module =