OSDN Git Service

Fix config map in default Vehicle HAL impl
authorPavel Maltsev <pavelm@google.com>
Tue, 14 Mar 2017 19:15:46 +0000 (12:15 -0700)
committerPavel Maltsev <pavelm@google.com>
Tue, 14 Mar 2017 19:15:46 +0000 (12:15 -0700)
Test: tested through VTS
Change-Id: Ibcf607d0ad5cc39291b0d8a159ca3ad849bea8ce

automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultVehicleHal.h

index 2efe05c..bbbe955 100644 (file)
@@ -47,7 +47,7 @@ public:
     DefaultVehicleHal() : mRecurrentTimer(
             std::bind(&DefaultVehicleHal::onContinuousPropertyTimer, this, std::placeholders::_1)) {
         for (size_t i = 0; i < arraysize(kVehicleProperties); i++) {
-            mPropConfigMap[kVehicleProperties->prop] = &kVehicleProperties[i];
+            mPropConfigMap[kVehicleProperties[i].prop] = &kVehicleProperties[i];
         }
     }