Commit 2ffa77d9 authored by Lubosz Sarnecki's avatar Lubosz Sarnecki

d/vive: Handle error when config could not be read.

parent db1e5b9f
Pipeline #77094 passed with stages
in 7 minutes and 3 seconds
......@@ -914,11 +914,14 @@ vive_device_create(struct os_hid_device *mainboard_dev,
vive_mainboard_get_device_info(d);
}
vive_sensors_read_firmware(d);
vive_sensors_get_imu_range_report(d);
char *config = vive_sensors_read_config(d);
vive_parse_config(d, config);
free(config);
if (config != NULL) {
vive_parse_config(d, config);
free(config);
}
// TODO: Replace hard coded values from OpenHMD with config
double w_meters = 0.122822 / 2.0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment