Skip to content

Commit

Permalink
Fixed for test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola02nb committed Dec 8, 2024
1 parent ce51d39 commit 14c1008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,8 @@ int main(int argc, char* argv[])
int headset_available = find_devices(&devices_found, test_device);

// User selected a device-index that is out of bounds
if (selected_device < 0 || selected_device >= headset_available) {
fprintf(stderr, "Usage: %s -d 0-N (N = Number of connected devices - 1)\n", argv[0]);
if (selected_device != 0 && (selected_device < 0 || selected_device >= headset_available)) {
fprintf(stderr, "Usage: %s -d [0-N] | [vendorid:deviceid] (N = Number of connected devices - 1)\n", argv[0]);
return 1;
}

Expand Down

0 comments on commit 14c1008

Please sign in to comment.