Skip to content

Commit

Permalink
Merge pull request #186 from nitsch/fix-usb-connect
Browse files Browse the repository at this point in the history
Fix connection of USB controllers
  • Loading branch information
thp committed Sep 21, 2015
2 parents cc8cb0e + 59344d9 commit 0ac355f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psmove.c
Expand Up @@ -597,7 +597,7 @@ psmove_connect_internal(wchar_t *serial, char *path, int id)
if (path != NULL) {
move->device_path = strdup(path);
}
if (serial == NULL && path != NULL) {
if ((serial == NULL || wcslen(serial) == 0) && path != NULL) {
move->handle = hid_open_path(path);
} else {
move->handle = hid_open(PSMOVE_VID, PSMOVE_PID, serial);
Expand Down

0 comments on commit 0ac355f

Please sign in to comment.