Skip to content

Commit ce97125

Browse files
committed
fix plug detection on start
1 parent bad01c2 commit ce97125

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

board/ti/omap4_kc1/kc1.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,15 @@ int misc_init_r(void)
251251
#endif
252252

253253
#ifdef CONFIG_FASTBOOT_COUNTDOWN
254-
if (fastboot_mode == 0) {
254+
if ((fastboot_mode == 0) && ((start_condition & STRT_ON_PLUG_DET) == 0)) {
255255
// DO MENU PREP
256256
lcd_position_cursor((lcd_get_screen_columns()/2)-(lcd_strlen(CONFIG_WELCOME_MSG)/2), lcd_get_screen_rows()-1);
257257
lcd_printf(CONFIG_WELCOME_MSG);
258258
}
259259
#endif
260260
run_command("setbacklight 7f", 0);
261-
run_command("fastboot", 0);
262-
261+
if ((start_condition & STRT_ON_PLUG_DET) == 0)
262+
run_command("fastboot", 0);
263263
return 0;
264264
}
265265

0 commit comments

Comments
 (0)