fix(h7): do not offer flash bootloader option in SD manager (#6764)
This commit is contained in:
@@ -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); });
|
||||||
|
|||||||
Reference in New Issue
Block a user