Skip to content

Commit b4d86d8

Browse files
author
Comma Device
committed
fix init
1 parent e74af06 commit b4d86d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

board/early_init.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ void early_initialization(void) {
5454
early_gpio_float();
5555

5656
detect_board_type();
57-
led_init();
5857

5958
if (enter_bootloader_mode == ENTER_BOOTLOADER_MAGIC) {
59+
led_init();
6060
#ifdef PANDA
6161
current_board->init_bootloader();
6262
#endif

board/flasher.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ void soft_flasher_start(void) {
132132

133133
gpio_usart2_init();
134134
gpio_usb_init();
135+
led_init();
135136

136137
// enable USB
137138
usb_init();

0 commit comments

Comments
 (0)