1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-20 06:45:12 +03:00

Check selected blackbox device before allowing mass storage reboot

This is the Configurator side check to go along with the firmware CLI check before rebooting into mass storage mode.
This commit is contained in:
Bruce Luckcuck 2019-01-12 19:25:51 -05:00
parent 52732511ac
commit e85a91027b

View file

@ -147,7 +147,7 @@ TABS.onboard_logging.initialize = function (callback) {
}).change(); }).change();
if (semver.gte(CONFIG.apiVersion, "1.40.0")) { if (semver.gte(CONFIG.apiVersion, "1.40.0")) {
if (SDCARD.supported || DATAFLASH.supported) { if ((SDCARD.supported && deviceSelect.val() == 2) || (DATAFLASH.supported && deviceSelect.val() == 1)) {
$(".tab-onboard_logging") $(".tab-onboard_logging")
.toggleClass("msc-supported", true); .toggleClass("msc-supported", true);