atbetaflight/lib/main
Bruce Luckcuck a1899d671b Fixes to allow the MSC command with on-board flash to work on MacOS.
Fixed a bug in the STM libraries to set the write protected bin in the device config for the mass storage SCSI sense code 6 and 10. Previously the `isWriteProtected()` result was only being examined during write attempts and they correctly failed and returned a `NOT_READY` response (we don't support writes for SPIFLASH). Unfortunately since the device was not flagged as write protected on MacOS the operating system would try to write to the device and this would fail causing the operating system to think the device wasn't ready and refuse to mount it.

General fixes:

Ensured that the filesystem appears to be at least 256MB so that the volume will be treated as FAT32 instead of FAT16. A hidden "padding.txt" file is created to represent the extra space.

Fix the directory structure to only create the "btfl_all.bbl" file if there were any logs found. Previously it would always be created and this would lead to directory corruption.

Fix the size calculation for the  "btfl_all.bbl" file. Previously it was being set to the total flash size rather than the used space.
2018-11-27 18:48:46 -05:00
..
CMSIS CF/BF - Update DSP_Lib and STM32F7/Drivers/CMSIS to CMSIS 5.3.0. (#5431) 2018-03-12 09:34:43 +13:00
MAVLink Fixed permissions on files. 2017-11-28 23:31:55 +13:00
STM32F1 CF/BF - Update DSP_Lib and STM32F7/Drivers/CMSIS to CMSIS 5.3.0. (#5431) 2018-03-12 09:34:43 +13:00
STM32F3 CF/BF - Update DSP_Lib and STM32F7/Drivers/CMSIS to CMSIS 5.3.0. (#5431) 2018-03-12 09:34:43 +13:00
STM32F4 CF/BF - Update DSP_Lib and STM32F7/Drivers/CMSIS to CMSIS 5.3.0. (#5431) 2018-03-12 09:34:43 +13:00
STM32F7 Post-cleanup of F7 optimizations (#5729) 2018-04-21 18:14:35 +12:00
STM32_USB-FS-Device_Driver Further improvements to serial const correctness 2016-10-04 09:01:28 +01:00
STM32_USB_Device_Library Fixes to allow the MSC command with on-board flash to work on MacOS. 2018-11-27 18:48:46 -05:00
STM32_USB_OTG_Driver Per mikeller's comment. 2018-04-13 02:59:17 +09:00
dyad implement SITL in gazebosim with ArduCopterPlugin 2017-04-05 18:22:59 +08:00