mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-29 04:02:05 +01:00
d/vive: Clarify variant from config comment
This commit is contained in:
1 parent
721897f59d
commit
0f34fea864
1 file changed
+6
-1
@@ -1053,8 +1053,13 @@ vive_device_create(struct os_hid_device *mainboard_dev,
|
||||
|
||||
char *config = vive_read_config(d->sensors_dev);
|
||||
|
||||
// Set logging level for the config we are about to fill out.
|
||||
d->config.log_level = d->log_level;
|
||||
// usb connected HMD variant is known because of USB id, config parsing relies on it.
|
||||
|
||||
/*
|
||||
* The prober knows which variant is connected because of
|
||||
* the USB VID/PID but we use `variant` from json config.
|
||||
*/
|
||||
if (config != NULL) {
|
||||
vive_config_parse(&d->config, config, d->log_level);
|
||||
free(config);
|
||||
|
||||
Reference in new issue
Block a user