diff options
author | Jose Antonio Santos Cadenas <santoscadenas@gmail.com> | 2010-11-16 10:10:56 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-11-18 16:56:27 +0200 |
commit | 0c17e368168f41c458424abda1b5267033ff1cf2 (patch) | |
tree | 761f1c1dd601ec86dab58b457cdc768530dbc57a /health | |
parent | 59d99d49674d950d3d44c39b7b596d193c29fbde (diff) | |
download | bluez-0c17e368168f41c458424abda1b5267033ff1cf2.tar.gz |
Remove magic number to check ECHO MDEPs in HDP
Diffstat (limited to 'health')
-rw-r--r-- | health/hdp.c | 3 |
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; |