Skip to content

Commit caece65

Browse files
committed
Fix Cortex-M0 Hard Fault
1 parent a9f2b6f commit caece65

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SdFat
2-
version=2.0.6
2+
version=2.0.7
33
license=MIT
44
author=Bill Greiman <fat16lib@sbcglobal.net>
55
maintainer=Bill Greiman <fat16lib@sbcglobal.net>

src/SdFat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
#endif // INCLUDE_SDIOS
3939
//------------------------------------------------------------------------------
4040
/** SdFat version for cpp use. */
41-
#define SD_FAT_VERSION 20006
41+
#define SD_FAT_VERSION 20007
4242
/** SdFat version as string. */
43-
#define SD_FAT_VERSION_STR "2.0.6"
43+
#define SD_FAT_VERSION_STR "2.0.7"
4444
//==============================================================================
4545
/**
4646
* \class SdBase

src/SdFatConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ typedef uint8_t SdCsPin_t;
279279
* Set USE_SIMPLE_LITTLE_ENDIAN nonzero for little endian processors
280280
* with no memory alignment restrictions.
281281
*/
282-
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && !defined(__SAMD21G18A__)\
283-
&& !defined(__MKL26Z64__) && !defined(ESP8266)
282+
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__\
283+
&& (defined(__AVR__) || defined(__ARM_FEATURE_UNALIGNED))
284284
#define USE_SIMPLE_LITTLE_ENDIAN 1
285285
#else // __BYTE_ORDER_
286286
#define USE_SIMPLE_LITTLE_ENDIAN 0

0 commit comments

Comments
 (0)