fix(h7): do not offer flash bootloader option in SD manager (#6764)

This commit is contained in:
3djc
2025-11-05 11:42:01 +10:00
committed by GitHub
parent 9cd44cf1cb
commit 0d27f05295
@@ -370,12 +370,8 @@ void RadioSdManagerPage::fileAction(const char* path, const char* name,
}); });
} }
if (!strcasecmp(ext, FIRMWARE_EXT)) { if (!strcasecmp(ext, FIRMWARE_EXT)) {
#if defined(FIRMWARE_FORMAT_UF2) //TODO: Find out why UF2FirmwareUpdate is bricking
if (isUF2FirmwareFile(fullpath)) { #if !defined(FIRMWARE_FORMAT_UF2)
menu->addLine(STR_FLASH_BOOTLOADER,
[=]() { FirmwareUpdate(fullpath); });
}
#else
if (isBootloader(fullpath)) { if (isBootloader(fullpath)) {
menu->addLine(STR_FLASH_BOOTLOADER, menu->addLine(STR_FLASH_BOOTLOADER,
[=]() { BootloaderUpdate(fullpath); }); [=]() { BootloaderUpdate(fullpath); });