From 91c773b53838bf6f497eb6eae6b69be08f128306 Mon Sep 17 00:00:00 2001 From: Andreika Date: Tue, 19 Nov 2024 22:43:56 +0200 Subject: [PATCH] OpenBLT: Enable another arbitrary pin https://github.com/rusefi/rusefi/issues/7069 (#7084) --- firmware/bootloader/bootloader_main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firmware/bootloader/bootloader_main.cpp b/firmware/bootloader/bootloader_main.cpp index d027d333b3..21629d7184 100644 --- a/firmware/bootloader/bootloader_main.cpp +++ b/firmware/bootloader/bootloader_main.cpp @@ -45,6 +45,14 @@ protected: } #endif // BOOTLOADER_ENABLE_OUTPUT_PIN +#ifdef BOOTLOADER_ENABLE_OUTPUT_PIN2 + { + ioportid_t en_port = getHwPort("blt-en-pin2", BOOTLOADER_ENABLE_OUTPUT_PIN2); + uint8_t en_pin = getHwPin("blt-en-pin2", BOOTLOADER_ENABLE_OUTPUT_PIN2); + palWritePad(en_port, en_pin, 1); + } +#endif // BOOTLOADER_ENABLE_OUTPUT_PIN2 + #ifdef BOOTLOADER_DISABLE_GREEN_LED greenPort = NULL; #endif // BOOTLOADER_DISABLE_GREEN_LED