summaryrefslogtreecommitdiff
path: root/profiles/scanparam
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-03-24 16:25:40 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-24 22:11:28 +0200
commit454a30731b202e7e7f41befdd96f0a1fa3d33a38 (patch)
treeb460b69094cafe8f92f8744eb75c7f237440f14e /profiles/scanparam
parente13e1abb8b5fba233dd0594198c44e21568e1a19 (diff)
downloadbluez-454a30731b202e7e7f41befdd96f0a1fa3d33a38.tar.gz
Replace att_put_u16() by put_le16()
Diffstat (limited to 'profiles/scanparam')
-rw-r--r--profiles/scanparam/scan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/profiles/scanparam/scan.c b/profiles/scanparam/scan.c
index d6e477e08..156682f25 100644
--- a/profiles/scanparam/scan.c
+++ b/profiles/scanparam/scan.c
@@ -67,8 +67,8 @@ static void write_scan_params(GAttrib *attrib, uint16_t handle)
{
uint8_t value[4];
- att_put_u16(SCAN_INTERVAL, &value[0]);
- att_put_u16(SCAN_WINDOW, &value[2]);
+ put_le16(SCAN_INTERVAL, &value[0]);
+ put_le16(SCAN_WINDOW, &value[2]);
gatt_write_cmd(attrib, handle, value, sizeof(value), NULL, NULL);
}
@@ -126,7 +126,7 @@ static void discover_descriptor_cb(guint8 status, const guint8 *pdu,
if (uuid16 != GATT_CLIENT_CHARAC_CFG_UUID)
goto done;
- att_put_u16(GATT_CLIENT_CHARAC_CFG_NOTIF_BIT, value);
+ put_le16(GATT_CLIENT_CHARAC_CFG_NOTIF_BIT, value);
gatt_write_char(scan->attrib, handle, value, sizeof(value),
ccc_written_cb, user_data);
done: