From 0f34fea8647ec0359d7904dc5f514e146d330633 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Mon, 26 Apr 2021 14:11:11 +0200 Subject: [PATCH] d/vive: Clarify variant from config comment --- src/xrt/drivers/vive/vive_device.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xrt/drivers/vive/vive_device.c b/src/xrt/drivers/vive/vive_device.c index a6a4b2cee..5a804ad81 100644 --- a/src/xrt/drivers/vive/vive_device.c +++ b/src/xrt/drivers/vive/vive_device.c @@ -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);