Fix for low power sleep
This commit is contained in:
parent
ae1471ab39
commit
11d6d9ccf4
4 changed files with 14 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
name=SdFat
|
||||
version=1.0.4
|
||||
version=1.0.5
|
||||
author=Bill Greiman <fat16lib@sbcglobal.net>
|
||||
maintainer=Bill Greiman <fat16lib@sbcglobal.net>
|
||||
sentence=FAT16/FAT32 file system for SD cards.
|
||||
|
|
|
|||
|
|
@ -539,8 +539,8 @@ bool SdSpiCard::writeBlock(uint32_t blockNumber, const uint8_t* src) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
#define CHECK_PROGRAMMING 0
|
||||
#if CHECK_PROGRAMMING
|
||||
|
||||
#if CHECK_FLASH_PROGRAMMING
|
||||
// wait for flash programming to complete
|
||||
if (!waitNotBusy(SD_WRITE_TIMEOUT)) {
|
||||
error(SD_CARD_ERROR_WRITE_TIMEOUT);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
#include "SdCard/SdioCard.h"
|
||||
//------------------------------------------------------------------------------
|
||||
/** SdFat version */
|
||||
#define SD_FAT_VERSION "1.0.4"
|
||||
#define SD_FAT_VERSION "1.0.5"
|
||||
//==============================================================================
|
||||
/**
|
||||
* \class SdBaseFile
|
||||
|
|
|
|||
|
|
@ -78,6 +78,16 @@
|
|||
*/
|
||||
#define ENABLE_SOFTWARE_SPI_CLASS 0
|
||||
//------------------------------------------------------------------------------
|
||||
/**
|
||||
* If CHECK_FLASH_PROGRAMMING is zero, overlap of single sector flash
|
||||
* programming and other operations will be allowed for faster write
|
||||
* performance.
|
||||
*
|
||||
* Some cards will not sleep in low power mode unless CHECK_FLASH_PROGRAMMING
|
||||
* is non-zero.
|
||||
*/
|
||||
#define CHECK_FLASH_PROGRAMMING 1
|
||||
//------------------------------------------------------------------------------
|
||||
/**
|
||||
* Set MAINTAIN_FREE_CLUSTER_COUNT nonzero to keep the count of free clusters
|
||||
* updated. This will increase the speed of the freeClusterCount() call
|
||||
|
|
|
|||
Loading…
Reference in a new issue