添加预览界面数字显示最大99999
This commit is contained in:
		
							parent
							
								
									2fa53d76af
								
							
						
					
					
						commit
						73820ddd29
					
				|  | @ -1,7 +1,7 @@ | |||
| #!/bin/bash | ||||
| #用于gitlab-ci.yml编译使用 | ||||
| 
 | ||||
| make app_clean | ||||
| #make app_clean | ||||
| 
 | ||||
| echo "Start compile." | ||||
| export ROOT_PATH=$PWD | ||||
|  | @ -9,7 +9,7 @@ export ROOT_PATH=$PWD | |||
| cd rtos | ||||
| source build/envsetup.sh | ||||
| lunch rtos cfg_565_HUNTING_EVB_LINUX_4G_S550 gcc-6.5-newlib-2.4-2019.11-arm-ca9-eabihf | ||||
| make clean | ||||
| #make clean | ||||
| make all  > /dev/null | ||||
| cp output/application.bin ../ | ||||
| cp output/rtos-main.bin ../ | ||||
|  | @ -18,7 +18,7 @@ cp output/rtos-main.bin ../ | |||
| cd $ROOT_PATH | ||||
| source build/envsetup.sh | ||||
| lunch Linux cfg_565_HUNTING_EVB_LINUX_4G_S550 arm-ca9-linux-uclibcgnueabihf-8.4.01 | ||||
| make clean | ||||
| #make clean | ||||
| make all  > /dev/null | ||||
| 
 | ||||
| cd $ROOT_PATH | ||||
|  |  | |||
|  | @ -62,6 +62,16 @@ CHAR *Get_FreePicNumString(UINT32 uiValue) | |||
| #else | ||||
| 	fileCount = DCF_GetDBInfo(DCF_INFO_TOL_FILE_COUNT); | ||||
| #endif | ||||
| 	if(fileCount > 99999) | ||||
| 	{ | ||||
| 		fileCount = 99999; | ||||
| 		if(uiValue > 99999) | ||||
| 		{ | ||||
| 			uiValue = 99999; | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
| 	 | ||||
| 	snprintf(g_cFreePicNumStr, sizeof(g_cFreePicNumStr), "%05ld/%05ld", fileCount, uiValue); | ||||
| 	return g_cFreePicNumStr; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 xiehongyan
						xiehongyan