aboutsummaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorJose Antonio Santos Cadenas <santoscadenas@gmail.com>2010-11-16 10:10:56 +0100
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-18 16:56:27 +0200
commit0c17e368168f41c458424abda1b5267033ff1cf2 (patch)
tree761f1c1dd601ec86dab58b457cdc768530dbc57a /health
parent59d99d49674d950d3d44c39b7b596d193c29fbde (diff)
downloadbluez-0c17e368168f41c458424abda1b5267033ff1cf2.tar.gz
Remove magic number to check ECHO MDEPs in HDP
Diffstat (limited to 'health')
-rw-r--r--health/hdp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/health/hdp.c b/health/hdp.c
index 3a633d9f..2a393d65 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -1042,8 +1042,7 @@ static uint8_t hdp_mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid,
DBG("Data channel request");
- if (mdepid == 0) {
- /* Is an echo channel */
+ if (mdepid == HDP_MDEP_ECHO) {
switch (*conf) {
case HDP_NO_PREFERENCE_DC:
*conf = HDP_RELIABLE_DC;