mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
d/vive: Clarify variant from config comment
This commit is contained in:
parent
721897f59d
commit
0f34fea864
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue