OSDN Git Service

Replace att_put_u32() by put_le32()
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Mon, 24 Mar 2014 19:25:34 +0000 (16:25 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 20:07:48 +0000 (22:07 +0200)
profiles/cyclingspeed/cyclingspeed.c

index 918f237..1222532 100644 (file)
@@ -1167,7 +1167,7 @@ static DBusMessage *set_cumulative_wheel_rev(DBusConnection *conn,
        csc->pending_req = req;
 
        att_val[0] = SET_CUMULATIVE_VALUE;
-       att_put_u32(value, att_val + 1);
+       put_le32(value, att_val + 1);
 
        gatt_write_char(csc->attrib, csc->controlpoint_val_handle, att_val,
                sizeof(att_val), controlpoint_write_cb, req);