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:
parent
4ed9382b93
commit
04844bd5a1
12 changed files with 272 additions and 279 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue