Skip to content
Merged

Fix #349

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void print_help(char* programname, struct device* device_found, bool _show_all)
printf(" -i, --inactive-time MINUTES\tSet inactive time (0-90 minutes, 0 disables)\n");
}
if (show_chatmix_status) {
printf(" -m, --chatmix LEVEL\t\tGet chat-mix-dial level (0-128, <64 for game, >64 for chat)\n");
printf(" -m, --chatmix\t\t\tGet chat-mix-dial level (0-128, <64 for game, >64 for chat)\n");
}
if (show_notification_sound) {
printf(" -n, --notificate SOUNDID\tPlay notification sound (SOUNDID depends on device)\n");
Expand Down
10 changes: 8 additions & 2 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,14 @@ HeadsetControlStatus initializeStatus(int num_devices)
status.version = VERSION;
status.api_version = APIVERSION;
status.name = HEADSETCONTROL_NAME;
status.hid_version = hid_version_str();
status.device_count = num_devices;
#if defined(HID_API_VERSION_MAJOR)
// The `hid_version_str()` function is available
status.hid_version = hid_version_str();
#else
// `hid_version_str()` is not available, return a general version string or number
status.hid_version = "0.0.0";
#endif
status.device_count = num_devices;
return status;
}

Expand Down