From 5503e3ae0ee0444b17b5d4917902050cba8e5f81 Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Mon, 23 Jun 2014 18:06:00 +0300 Subject: [PATCH] android/health: Fix wrong mdep config index MDEP Id starts from 1, (0 value for Echo). HAL api sends mdep cfg index which starts from 0. --- android/health.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/health.c b/android/health.c index effa5e228..183608b68 100644 --- a/android/health.c +++ b/android/health.c @@ -137,7 +137,7 @@ static void send_channel_state_notify(struct health_channel *channel, bdaddr2android(&channel->dev->dst, ev.bdaddr); ev.app_id = channel->dev->app_id; - ev.mdep_index = channel->mdep_id; + ev.mdep_index = channel->mdep_id - 1; ev.channel_id = channel->id; ev.channel_state = state; -- 2.47.3