Browse Source

Change SD_FAT_VERSION from string to integer

Bill Greiman 4 years ago
parent
commit
ca42ad3319
2 changed files with 5 additions and 3 deletions
  1. 1 1
      examples/SdInfo/SdInfo.ino
  2. 4 2
      src/SdFat.h

+ 1 - 1
examples/SdInfo/SdInfo.ino

@@ -208,7 +208,7 @@ void setup() {
   while (!Serial) {
     SysCall::yield();
   }
-  cout << F("SdFat version: ") << SD_FAT_VERSION << endl;
+  cout << F("SdFat version: ") << SD_FAT_VERSION_STR << endl;
   printConfig(SD_CONFIG);
 
 }

+ 4 - 2
src/SdFat.h

@@ -38,8 +38,10 @@
 #endif  // INCLUDE_SDIOS
 
 //------------------------------------------------------------------------------
-/** SdFat version */
-#define SD_FAT_VERSION "2.0.2"
+/** SdFat version  for cpp use. */
+#define SD_FAT_VERSION 20003
+/** SdFat version as string. */
+#define SD_FAT_VERSION_STR "2.0.3"
 //==============================================================================
 /**
  * \class SdBase