diff --git a/flight/Bootloaders/OpenPilot/openpilot_bl.c b/flight/Bootloaders/OpenPilot/openpilot_bl.c
index 4158a57b6..45a21186b 100644
--- a/flight/Bootloaders/OpenPilot/openpilot_bl.c
+++ b/flight/Bootloaders/OpenPilot/openpilot_bl.c
@@ -40,10 +40,6 @@ int main()
/* Brings up System using CMSIS functions, enables the LEDs. */
PIOS_SYS_Init();
- /* Initialise LED's */
- PIOS_LED_Off(LED1);
- PIOS_LED_Off(LED2);
-
/* Only go into bootloader when the USB cable is connected */
if(PIOS_USB_CableConnected()) {
/* Delay system */
diff --git a/flight/OpenPilot/Makefile b/flight/OpenPilot/Makefile
index 21f5d5e0a..4aa41656d 100644
--- a/flight/OpenPilot/Makefile
+++ b/flight/OpenPilot/Makefile
@@ -27,7 +27,7 @@
# Set to YES for debugging
DEBUG = YES
ENABLE_DEBUG_PINS = NO
-USE_BOOTLOADER = YES
+USE_BOOTLOADER = NO
# Set to YES when using Code Sourcery toolchain
CODE_SOURCERY = YES
diff --git a/flight/PiOS/STM32F10x/pios_led.c b/flight/PiOS/STM32F10x/pios_led.c
index 5b0cc9c25..3e3ec9c36 100644
--- a/flight/PiOS/STM32F10x/pios_led.c
+++ b/flight/PiOS/STM32F10x/pios_led.c
@@ -53,6 +53,9 @@ void PIOS_LED_Init(void)
RCC_APB2PeriphClockCmd(LED_GPIO_CLK[LEDNum], ENABLE);
GPIO_InitStructure.GPIO_Pin = LED_GPIO_PIN[LEDNum];
GPIO_Init(LED_GPIO_PORT[LEDNum], &GPIO_InitStructure);
+
+ /* LED's Off */
+ LED_GPIO_PORT[LEDNum]->BSRR = LED_GPIO_PIN[LEDNum];
}
}
diff --git a/flight/PiOS/STM32F10x/pios_sys.c b/flight/PiOS/STM32F10x/pios_sys.c
index 9567a8a65..80aa150db 100644
--- a/flight/PiOS/STM32F10x/pios_sys.c
+++ b/flight/PiOS/STM32F10x/pios_sys.c
@@ -79,6 +79,45 @@ void PIOS_SYS_Init(void)
#endif
}
+/**
+* Shutdown PIOS and reset the microcontroller:
+*