对技术执着
分类: LINUX
2015-07-08 17:25:42
--- a/mediatek/platform/mt6577/uboot/mt6577_bat.c +++ b/mediatek/platform/mt6577/uboot/mt6577_bat.c @@ -1689,6 +1689,7 @@ void uboot_charging_display() if (!bl_switch) { mt65xx_disp_power(TRUE); bl_switch_timer++; + mdelay(100);//zhaoshaopeng add mt65xx_backlight_on(); g_bl_on = 1; } @@ -1911,6 +1912,7 @@ void mt65xx_bat_init(void) printf("Restore brightness\r\n"); mt65xx_leds_brightness_set(6, 255); check_point_sync_leds(); + mdelay(100); mt65xx_backlight_on(); #endif @@ -1976,7 +1978,7 @@ void mt65xx_bat_init(void) printf("[mt65xx_bat_init] capacity_seconds = %d,capacity_minutes=%d\n",capacity_seconds,capacity_minutes); capacity_seconds = 0; capacity_minutes++; - if(capacity_minutes >=20) + if(capacity_minutes >=30)//zhaoshaopeng add from 20 { capacity_minutes = 0; capacity_full_flag = 1;
--- a/mediatek/platform/mt6577/uboot/mt65xx_logo.c +++ b/mediatek/platform/mt6577/uboot/mt65xx_logo.c @@ -402,7 +402,7 @@ void cust_show_battery_capacity_new(UINT32 capacity) top_animation_rect.bottom = capacity_grids; top_animation_rect.top = capacity_grids - top_animation_height; - if (capacity <= 90) + if (capacity <= 99) { charging_animation_index++; printf("[ChargingAnimation]top_animation : left = %d, top = %d, right = %d, bottom = %d\n", top_animation_rect.left, top_animation_rect.top, top_animation_rect.right, top_animation_rect.bottom);