Otherwise it's not clear in many applications which of the two
gyroscopes is the uncalibrated one.
Issue: GMIN-2992
Change-Id: I5610e16290e0e8914efb8bf5aa3a8250bc141509
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
unsigned int dev_num;
int i, c;
unsigned int is_poll_sensor;
+ char buf[MAX_NAME_SIZE];
int cal_idx = 0;
int uncal_idx = 0;
strncpy(sensor_info[uncal_idx].motion_trigger_name,
sensor_info[cal_idx].motion_trigger_name,
MAX_NAME_SIZE);
+
+ /* Add "Uncalibrated " prefix to sensor name */
+ strcpy(buf, sensor_info[cal_idx].friendly_name);
+ snprintf(sensor_info[uncal_idx].friendly_name,
+ MAX_NAME_SIZE,
+ "%s %s", "Uncalibrated", buf);
break;
}
}