diff --git a/src/InternalStorage.cpp b/src/InternalStorage.cpp index e61f2dc..09c2b21 100644 --- a/src/InternalStorage.cpp +++ b/src/InternalStorage.cpp @@ -57,12 +57,14 @@ int InternalStorage::begin(){ int err = this -> userDataFileSystem -> mount(this -> userData); if(err == 0) return 1; + #else + return 0; #endif } int InternalStorage::unmount(){ int err = this -> userDataFileSystem -> unmount(); - if(err == 0) return 1; + return err == 0 ? 1 : 0; } Folder InternalStorage::getRootFolder(){ diff --git a/src/InternalStorage.h b/src/InternalStorage.h index 3bd7ba5..b3d35c1 100644 --- a/src/InternalStorage.h +++ b/src/InternalStorage.h @@ -107,7 +107,7 @@ class InternalStorage : public Arduino_UnifiedStorage { #endif - char * partitionName = "user"; + char * partitionName = (char *) "user"; FileSystems fs = FS_FAT; }; diff --git a/src/SDStorage.cpp b/src/SDStorage.cpp index 94ad710..8c2e798 100644 --- a/src/SDStorage.cpp +++ b/src/SDStorage.cpp @@ -14,7 +14,7 @@ int SDStorage::begin(){ int SDStorage::begin(FileSystems fs){ this -> fs = fs; - this -> begin(); + return this -> begin(); } int SDStorage::unmount(){ diff --git a/src/USBStorage.cpp b/src/USBStorage.cpp index f1268e2..b2c97f8 100644 --- a/src/USBStorage.cpp +++ b/src/USBStorage.cpp @@ -18,7 +18,7 @@ USBStorage::USBStorage(){ int USBStorage::begin(FileSystems fs){ this -> fs = fs; - this -> begin(); + return this -> begin(); } int USBStorage::begin(){