contexthub: fix a bug in stub hal impl
Test: build & flash
Flag: N/A, stub hal change
Bug: 361830233
Change-Id: I0227ff01302e3d6178019777f6f201aeec94e0b3
diff --git a/contexthub/aidl/default/ContextHub.cpp b/contexthub/aidl/default/ContextHub.cpp
index 5713a1b..a915191 100644
--- a/contexthub/aidl/default/ContextHub.cpp
+++ b/contexthub/aidl/default/ContextHub.cpp
@@ -158,8 +158,8 @@
vendorHub.version = 42;
HubInfo hubInfo2 = {};
- hubInfo1.hubId = UINT64_C(0x1234567812345678);
- hubInfo1.hubDetails =
+ hubInfo2.hubId = UINT64_C(0x1234567812345678);
+ hubInfo2.hubDetails =
HubInfo::HubDetails::make<HubInfo::HubDetails::Tag::vendorHubInfo>(vendorHub);
_aidl_return->push_back(hubInfo1);