1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Fix typos.

This commit is contained in:
Bert Vermeulen 2014-10-05 02:38:35 +02:00
parent 78940e6921
commit d66bbceaa7
2 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ enum sp_transport {
SP_TRANSPORT_NATIVE, SP_TRANSPORT_NATIVE,
/** USB serial port adapter. */ /** USB serial port adapter. */
SP_TRANSPORT_USB, SP_TRANSPORT_USB,
/** Bluetooh serial port adapter. */ /** Bluetooth serial port adapter. */
SP_TRANSPORT_BLUETOOTH SP_TRANSPORT_BLUETOOTH
}; };

View File

@ -253,7 +253,7 @@ static void enumerate_hub(struct sp_port *port, char *hub_name,
/* get the number of ports of the hub */ /* get the number of ports of the hub */
if (DeviceIoControl(hub_device, IOCTL_USB_GET_NODE_INFORMATION, if (DeviceIoControl(hub_device, IOCTL_USB_GET_NODE_INFORMATION,
&hub_info, size, &hub_info, size, &size, NULL)) &hub_info, size, &hub_info, size, &size, NULL))
/* enumarate the ports of the hub */ /* enumerate the ports of the hub */
enumerate_hub_ports(port, hub_device, enumerate_hub_ports(port, hub_device,
hub_info.u.HubInformation.HubDescriptor.bNumberOfPorts, parent_path); hub_info.u.HubInformation.HubDescriptor.bNumberOfPorts, parent_path);
@ -448,7 +448,7 @@ SP_PRIV enum sp_return get_port_details(struct sp_port *port)
free(escaped_port_name); free(escaped_port_name);
CloseHandle(handle); CloseHandle(handle);
/* retrive USB device details from the device descriptor */ /* retrieve USB device details from the device descriptor */
get_usb_details(port, device_info_data.DevInst); get_usb_details(port, device_info_data.DevInst);
} }
break; break;