diff --git a/firmware/bootloader/bootloader_main.cpp b/firmware/bootloader/bootloader_main.cpp index 7aaab4bfc1..d027d333b3 100644 --- a/firmware/bootloader/bootloader_main.cpp +++ b/firmware/bootloader/bootloader_main.cpp @@ -37,6 +37,18 @@ protected: auto redPort = getBrainPinPort(red); auto redPin = getBrainPinIndex(red); +#ifdef BOOTLOADER_ENABLE_OUTPUT_PIN + { + ioportid_t en_port = getHwPort("blt-en-pin", BOOTLOADER_ENABLE_OUTPUT_PIN); + uint8_t en_pin = getHwPin("blt-en-pin", BOOTLOADER_ENABLE_OUTPUT_PIN); + palWritePad(en_port, en_pin, 1); + } +#endif // BOOTLOADER_ENABLE_OUTPUT_PIN + +#ifdef BOOTLOADER_DISABLE_GREEN_LED + greenPort = NULL; +#endif // BOOTLOADER_DISABLE_GREEN_LED + if (yellowPort) { palSetPad(yellowPort, yellowPin); }