mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-05 21:52:10 +01:00
Disable LEDs on the bootloader update as without knowing the particular
hardware revision it cannot know which pios_led_cfg_ structure to use. Possibly this should be abstracted further into board_hw_defs to create functions like board_init_led. Also the BU should probably compare the hw_revision of the original and new bootloader to make sure the user doesn't break their board.
This commit is contained in:
parent
a40a0b0e31
commit
d8c288f223
@ -46,9 +46,4 @@ void PIOS_Board_Init(void) {
|
|||||||
|
|
||||||
/* Initialize the PiOS library */
|
/* Initialize the PiOS library */
|
||||||
PIOS_GPIO_Init();
|
PIOS_GPIO_Init();
|
||||||
|
|
||||||
#if defined(PIOS_INCLUDE_LED)
|
|
||||||
PIOS_LED_Init(&pios_led_cfg);
|
|
||||||
#endif /* PIOS_INCLUDE_LED */
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user