Save all fields of device info

This commit is contained in:
John Zhao 2018-04-21 22:05:38 +08:00
parent cf15498994
commit 145046249d
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,10 @@
%YAML:1.0 %YAML:1.0
--- ---
device_name: MYNT-EYE-S1000
serial_number: "0386322C0009070E"
firmware_version: "2.0"
hardware_version: "2.0"
spec_version: "1.0"
lens_type: "0000" lens_type: "0000"
imu_type: "0000" imu_type: "0000"
nominal_baseline: 120 nominal_baseline: 120

View File

@ -151,6 +151,11 @@ bool DeviceWriter::SaveDeviceInfo(
LOG(ERROR) << "Failed to save file: " << filepath; LOG(ERROR) << "Failed to save file: " << filepath;
return false; return false;
} }
fs << "device_name" << info.name;
fs << "serial_number" << info.serial_number;
fs << "firmware_version" << info.firmware_version.to_string();
fs << "hardware_version" << info.hardware_version.to_string();
fs << "spec_version" << info.spec_version.to_string();
fs << "lens_type" << info.lens_type.to_string(); fs << "lens_type" << info.lens_type.to_string();
fs << "imu_type" << info.imu_type.to_string(); fs << "imu_type" << info.imu_type.to_string();
fs << "nominal_baseline" << info.nominal_baseline; fs << "nominal_baseline" << info.nominal_baseline;