From e85a91027b550eb0e7b637b43ccdae157fb0541d Mon Sep 17 00:00:00 2001 From: Bruce Luckcuck Date: Sat, 12 Jan 2019 19:25:51 -0500 Subject: [PATCH] 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. --- src/js/tabs/onboard_logging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/tabs/onboard_logging.js b/src/js/tabs/onboard_logging.js index 3d48853e..ad5129bf 100644 --- a/src/js/tabs/onboard_logging.js +++ b/src/js/tabs/onboard_logging.js @@ -147,7 +147,7 @@ TABS.onboard_logging.initialize = function (callback) { }).change(); 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") .toggleClass("msc-supported", true);