Skip to content

Commit

Permalink
Samaung never changes pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmeler committed Feb 24, 2022
1 parent df9a69b commit f23f4cb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2981,20 +2981,21 @@ int fimc_is_sec_sensor_find_front_tof_uid(struct fimc_is_core *core, char *buf)
#ifdef CAMERA_FRONT_TOF
struct fimc_is_vender_specific *specific = core->vender.private_data;
struct fimc_is_rom_info *finfo = NULL;
int i = 0;

fimc_is_sec_get_sysfs_finfo(&finfo, FRONT_TOF_ROM_ID);

if (finfo->cal_map_ver[3] >= FRONT_TOF_CHECK_MAP_VERSION) {
char uid_list[256] = {0, };
char uid_temp[10] = {0, };
for (int i = 0; i < finfo->rom_tof_cal_uid_addr_len; i++) {
for (i; i < finfo->rom_tof_cal_uid_addr_len; i++) {
specific->front_tof_uid[i] = *((int32_t*)&buf[finfo->rom_tof_cal_uid_addr[i]]);
sprintf(uid_temp, "0x%x ", specific->front_tof_uid[i]);
strcat(uid_list, uid_temp);
}
info("front_tof_uid: %s\n", uid_list);
} else {
for (int i = 0; i < finfo->rom_tof_cal_uid_addr_len; i++) {
for (i; i < finfo->rom_tof_cal_uid_addr_len; i++) {
specific->front_tof_uid[i] = FRONT_TOF_DEFAULT_UID;
}
info("front_tof_uid: 0x%x, use default 0x%x", *((int32_t*)&buf[finfo->rom_tof_cal_uid_addr[0]]),
Expand Down

0 comments on commit f23f4cb

Please sign in to comment.