Skip to content

Commit

Permalink
Fix for low power sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
greiman committed Dec 23, 2017
1 parent ae1471a commit 11d6d9c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SdFat
version=1.0.4
version=1.0.5
author=Bill Greiman <[email protected]>
maintainer=Bill Greiman <[email protected]>
sentence=FAT16/FAT32 file system for SD cards.
Expand Down
4 changes: 2 additions & 2 deletions src/SdCard/SdSpiCard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/SdFat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions src/SdFatConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11d6d9c

Please sign in to comment.