From a9b8e74b0d3b9f923d06c8db162a85ce36957e19 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Fri, 4 May 2012 08:53:14 -0500 Subject: [PATCH] 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. --- flight/Bootloaders/BootloaderUpdater/pios_board.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/flight/Bootloaders/BootloaderUpdater/pios_board.c b/flight/Bootloaders/BootloaderUpdater/pios_board.c index d19a2ba13..93973b470 100644 --- a/flight/Bootloaders/BootloaderUpdater/pios_board.c +++ b/flight/Bootloaders/BootloaderUpdater/pios_board.c @@ -46,9 +46,4 @@ void PIOS_Board_Init(void) { /* Initialize the PiOS library */ PIOS_GPIO_Init(); - -#if defined(PIOS_INCLUDE_LED) - PIOS_LED_Init(&pios_led_cfg); -#endif /* PIOS_INCLUDE_LED */ - }