diff --git a/src/hal/hisi/v1_hal.c b/src/hal/hisi/v1_hal.c index 352d564..78e4dd3 100644 --- a/src/hal/hisi/v1_hal.c +++ b/src/hal/hisi/v1_hal.c @@ -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) diff --git a/src/hal/hisi/v2_hal.c b/src/hal/hisi/v2_hal.c index 3c403f9..2d66ccd 100644 --- a/src/hal/hisi/v2_hal.c +++ b/src/hal/hisi/v2_hal.c @@ -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) diff --git a/src/hal/hisi/v3_hal.c b/src/hal/hisi/v3_hal.c index 6362eff..ab46309 100644 --- a/src/hal/hisi/v3_hal.c +++ b/src/hal/hisi/v3_hal.c @@ -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) diff --git a/src/hal/hisi/v4_hal.c b/src/hal/hisi/v4_hal.c index d408fad..f2e1321 100644 --- a/src/hal/hisi/v4_hal.c +++ b/src/hal/hisi/v4_hal.c @@ -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) diff --git a/src/hal/plus/cvi_hal.c b/src/hal/plus/cvi_hal.c index f7eb5ca..e1e33b6 100644 --- a/src/hal/plus/cvi_hal.c +++ b/src/hal/plus/cvi_hal.c @@ -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) diff --git a/src/hal/star/i6_hal.c b/src/hal/star/i6_hal.c index 86d7bb4..642a441 100644 --- a/src/hal/star/i6_hal.c +++ b/src/hal/star/i6_hal.c @@ -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); } diff --git a/src/hal/star/i6c_hal.c b/src/hal/star/i6c_hal.c index ee4f98c..5f356d9 100644 --- a/src/hal/star/i6c_hal.c +++ b/src/hal/star/i6c_hal.c @@ -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') diff --git a/src/hal/star/i6f_hal.c b/src/hal/star/i6f_hal.c index 03da63f..e3590ac 100644 --- a/src/hal/star/i6f_hal.c +++ b/src/hal/star/i6f_hal.c @@ -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); }