summaryrefslogtreecommitdiff
path: root/profiles/cyclingspeed
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-03-24 16:25:37 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-24 22:08:20 +0200
commit91744cb56f13be246a8614800aea3065b46181d3 (patch)
treedd98768c89dbad773dd3dd15f6e9d2f77c6e3437 /profiles/cyclingspeed
parent3f03ab5766de008f008fdd7cfb8679849accc51f (diff)
downloadbluez-91744cb56f13be246a8614800aea3065b46181d3.tar.gz
Replace att_get_u16() by get_le16()
Diffstat (limited to 'profiles/cyclingspeed')
-rw-r--r--profiles/cyclingspeed/cyclingspeed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/profiles/cyclingspeed/cyclingspeed.c b/profiles/cyclingspeed/cyclingspeed.c
index 12225323c..63e969ac1 100644
--- a/profiles/cyclingspeed/cyclingspeed.c
+++ b/profiles/cyclingspeed/cyclingspeed.c
@@ -381,7 +381,7 @@ static void read_feature_cb(guint8 status, const guint8 *pdu, guint16 len,
return;
}
- csc->feature = att_get_u16(value);
+ csc->feature = get_le16(value);
if ((csc->feature & MULTI_SENSOR_LOC_SUPPORT)
&& (csc->locations == NULL))
@@ -447,8 +447,8 @@ static void discover_desc_cb(guint8 status, const guint8 *pdu,
char *msg;
value = list->data[i];
- handle = att_get_u16(value);
- uuid = att_get_u16(value + 2);
+ handle = get_le16(value);
+ uuid = get_le16(value + 2);
if (uuid != GATT_CLIENT_CHARAC_CFG_UUID)
continue;
@@ -575,7 +575,7 @@ static void process_measurement(struct csc *csc, const uint8_t *pdu,
m.has_wheel_rev = true;
m.wheel_rev = get_le32(pdu);
- m.last_wheel_time = att_get_u16(pdu + 4);
+ m.last_wheel_time = get_le16(pdu + 4);
pdu += 6;
len -= 6;
}
@@ -587,8 +587,8 @@ static void process_measurement(struct csc *csc, const uint8_t *pdu,
}
m.has_crank_rev = true;
- m.crank_rev = att_get_u16(pdu);
- m.last_crank_time = att_get_u16(pdu + 2);
+ m.crank_rev = get_le16(pdu);
+ m.last_crank_time = get_le16(pdu + 2);
pdu += 4;
len -= 4;
}