Assigns broadcast endpoint ID to messages to host

Bug: 70158191
Bug: 70339559
Test: Compile and flash on sailfish-userdebug, run CHQTS and verify pass
Change-Id: I3f59560e25faa3627dcd803e3cc6d9cbc30c2645
This commit is contained in:
Arthur Ishiguro 2017-12-04 11:42:31 -08:00
parent 85a3fa9d65
commit 4dc7e049f0

View file

@ -383,6 +383,7 @@ int Contexthub::contextHubCb(uint32_t hubId,
msg.appName = rxMsg->app_name.id;
msg.msgType = rxMsg->message_type;
msg.hostEndPoint = static_cast<uint16_t>(HostEndPoint::BROADCAST);
msg.msg = std::vector<uint8_t>(static_cast<const uint8_t *>(rxMsg->message),
static_cast<const uint8_t *>(rxMsg->message) +
rxMsg->message_len);