summaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-11-10 16:58:10 +0100
committerGravatar Nikias Bassen2014-11-11 13:52:52 +0100
commit4da37c1e130e32c4bbad13de7461e0612ca15597 (patch)
treeaf7e129ba4668fbc91c9cf567027e517503725f9 /src/client.c
parent07c5634cef09a913d6307de5b0edd6e73aaebfb3 (diff)
downloadusbmuxd-4da37c1e130e32c4bbad13de7461e0612ca15597.tar.gz
usbmuxd-4da37c1e130e32c4bbad13de7461e0612ca15597.tar.bz2
Get USB speed for device and use it for device attached client message
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index 403340a..268c8b9 100644
--- a/src/client.c
+++ b/src/client.c
@@ -306,8 +306,7 @@ static plist_t create_device_attached_plist(struct device_info *dev)
plist_dict_set_item(dict, "MessageType", plist_new_string("Attached"));
plist_dict_set_item(dict, "DeviceID", plist_new_uint(dev->id));
plist_t props = plist_new_dict();
- // TODO: get current usb speed
- plist_dict_set_item(props, "ConnectionSpeed", plist_new_uint(480000000));
+ plist_dict_set_item(props, "ConnectionSpeed", plist_new_uint(dev->speed));
plist_dict_set_item(props, "ConnectionType", plist_new_string("USB"));
plist_dict_set_item(props, "DeviceID", plist_new_uint(dev->id));
plist_dict_set_item(props, "LocationID", plist_new_uint(dev->location));