This commit is contained in:
Andreika 2024-11-12 18:03:11 +02:00 committed by GitHub
parent 16ed40b885
commit 7839e3e601
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -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);
}