1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 05:45:31 +03:00

Refactor common USB MSC code and improve activity LED

Eliminated the duplicated MSC functions in the architecture specific files and moved to a shared common.

Improved the activity indicating LED and made it consistent between onboard flash and sd card mass storage mode.
This commit is contained in:
Bruce Luckcuck 2019-12-01 10:22:59 -05:00
parent 4ed9382b93
commit 04844bd5a1
12 changed files with 272 additions and 279 deletions

View file

@ -614,7 +614,7 @@ void init(void)
if (mscCheckBoot() || mscCheckButton()) {
ledInit(statusLedConfig());
#if defined(USE_FLASHFS) && defined(USE_FLASH_CHIP)
#if defined(USE_FLASHFS)
// If the blackbox device is onboard flash, then initialize and scan
// it to identify the log files *before* starting the USB device to
// prevent timeouts of the mass storage device.