diff --git a/src/main.c b/src/main.c index 9947a6d6..fbfc2c8d 100644 --- a/src/main.c +++ b/src/main.c @@ -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"); diff --git a/src/output.c b/src/output.c index 683c511a..1a659ba2 100644 --- a/src/output.c +++ b/src/output.c @@ -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; }