Skip to content

Commit ca42ad3

Browse files
committed
Change SD_FAT_VERSION from string to integer
1 parent f62283a commit ca42ad3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/SdInfo/SdInfo.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void setup() {
208208
while (!Serial) {
209209
SysCall::yield();
210210
}
211-
cout << F("SdFat version: ") << SD_FAT_VERSION << endl;
211+
cout << F("SdFat version: ") << SD_FAT_VERSION_STR << endl;
212212
printConfig(SD_CONFIG);
213213

214214
}

src/SdFat.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@
3838
#endif // INCLUDE_SDIOS
3939

4040
//------------------------------------------------------------------------------
41-
/** SdFat version */
42-
#define SD_FAT_VERSION "2.0.2"
41+
/** SdFat version for cpp use. */
42+
#define SD_FAT_VERSION 20003
43+
/** SdFat version as string. */
44+
#define SD_FAT_VERSION_STR "2.0.3"
4345
//==============================================================================
4446
/**
4547
* \class SdBase

0 commit comments

Comments
 (0)