Skip to content

Commit

Permalink
Cleaning up some things
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Sep 2, 2024
1 parent df8b044 commit 3bf53b1
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 14 deletions.
5 changes: 3 additions & 2 deletions src/hal/hisi/v1_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,11 +802,12 @@ int v1_system_init(char *snrConfig)
{
int ret;

printf("App built with headers v%s\n", V1_SYS_API);

{
v1_sys_ver version;
v1_sys.fnGetVersion(&version);
printf("App built with headers v%s\n", V1_SYS_API);
printf("%s\n", version.version);
puts(version.version);
}

if (v1_parse_sensor_config(snrConfig, &v1_config) != CONFIG_OK)
Expand Down
5 changes: 3 additions & 2 deletions src/hal/hisi/v2_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,11 +850,12 @@ int v2_system_init(char *snrConfig)
{
int ret;

printf("App built with headers v%s\n", V2_SYS_API);

{
v2_sys_ver version;
v2_sys.fnGetVersion(&version);
printf("App built with headers v%s\n", V2_SYS_API);
printf("%s\n", version.version);
puts(version.version);
}

if (v2_parse_sensor_config(snrConfig, &v2_config) != CONFIG_OK)
Expand Down
5 changes: 3 additions & 2 deletions src/hal/hisi/v3_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,11 +869,12 @@ int v3_system_init(char *snrConfig)
{
int ret;

printf("App built with headers v%s\n", V3_SYS_API);

{
v3_sys_ver version;
v3_sys.fnGetVersion(&version);
printf("App built with headers v%s\n", V3_SYS_API);
printf("%s\n", version.version);
puts(version.version);
}

if (v3_parse_sensor_config(snrConfig, &v3_config) != CONFIG_OK)
Expand Down
5 changes: 3 additions & 2 deletions src/hal/hisi/v4_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,11 +915,12 @@ int v4_system_init(char *snrConfig)
{
int ret;

printf("App built with headers v%s\n", V4_SYS_API);

{
v4_sys_ver version;
v4_sys.fnGetVersion(&version);
printf("App built with headers v%s\n", V4_SYS_API);
printf("%s\n", version.version);
puts(version.version);
}

if (v4_parse_sensor_config(snrConfig, &v4_config) != CONFIG_OK)
Expand Down
5 changes: 3 additions & 2 deletions src/hal/plus/cvi_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,11 +861,12 @@ int cvi_system_init(char *snrConfig)
{
int ret;

printf("App built with headers v%s\n", CVI_SYS_API);

{
cvi_sys_ver version;
cvi_sys.fnGetVersion(&version);
printf("App built with headers v%s\n", CVI_SYS_API);
printf("%s\n", version.version);
puts(version.version);
}

if (cvi_parse_sensor_config(snrConfig, &cvi_config) != CONFIG_OK)
Expand Down
3 changes: 2 additions & 1 deletion src/hal/star/i6_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,11 +917,12 @@ int i6_system_init(void)
{
int ret;

printf("App built with headers v%s\n", I6_SYS_API);

{
i6_sys_ver version;
if (ret = i6_sys.fnGetVersion(&version))
return ret;
printf("App built with headers v%s\n", I6_SYS_API);
puts(version.version);
}

Expand Down
5 changes: 3 additions & 2 deletions src/hal/star/i6c_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,12 +990,13 @@ int i6c_system_init(void)

if (ret = i6c_sys.fnInit(0))
return ret;

printf("App built with headers v%s\n", I6C_SYS_API);

{
i6c_sys_ver version;
if (ret = i6c_sys.fnGetVersion(0, &version))
return ret;

printf("App built with headers v%s\n", I6C_SYS_API);
puts(version.version);

if (strstr(version.version, "build_time.202")[14] != '2')
Expand Down
3 changes: 2 additions & 1 deletion src/hal/star/i6f_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,13 +932,14 @@ int i6f_system_init(void)
{
int ret;

printf("App built with headers v%s\n", I6F_SYS_API);

if (ret = i6f_sys.fnInit(0))
return ret;
{
i6f_sys_ver version;
if (ret = i6f_sys.fnGetVersion(0, &version))
return ret;
printf("App built with headers v%s\n", I6F_SYS_API);
puts(version.version);
}

Expand Down

0 comments on commit 3bf53b1

Please sign in to comment.