Fix logo_partition_generate
Change-Id: Ib9e94ec8fd59bbb90127ad9878ba216fc8227520
diff --git a/mbtk/mbtk_utils_linux/logo_partition_generate.c b/mbtk/mbtk_utils_linux/logo_partition_generate.c
index fade677..29098da 100755
--- a/mbtk/mbtk_utils_linux/logo_partition_generate.c
+++ b/mbtk/mbtk_utils_linux/logo_partition_generate.c
@@ -34,7 +34,7 @@
} BITMAPINFOHEADER;
#pragma pack(pop)
-#define ANIM_PIC_MAX 30 // 开机动画的最大图片数量 (1.bmp - 30.bmp)
+#define ANIM_PIC_MAX 100 // 开机动画的最大图片数量 (1.bmp - 100.bmp)
static mbtk_logo_header_t logo_header = {
.addr = LOGO_ADDR_START,
@@ -45,11 +45,11 @@
static mbtk_animation_header_t animation_header = {
.addr = ANIMATION_ADDR_START,
- .pic_num = 0,
+ .pic_num = 0, // Max is ANIM_PIC_MAX
.pic_width = 240,
.pic_height = 320,
.waitting_time = 0, // ms
- .frame_show_num = 50,
+ .frame_show_num = 0, // show forever
.bg_rgb = 0x00000000 // black
};
@@ -306,7 +306,7 @@
break;
case 'd':
temp_int = (uint32)atoi(optarg);
- if(temp_int > 0) {
+ if(temp_int >= 0) {
animation_header.frame_show_num = temp_int;
} else {
printf("animation frame_show_num error.");