@@ -14,19 +14,19 @@ InternalStorage::InternalStorage(){
14
14
InternalStorage::InternalStorage (int partition, const char * name, FileSystems fs){
15
15
this -> setQSPIPartition (partition);
16
16
this -> setQSPIPartitionName (name);
17
- this -> fs = fs;
17
+ this -> fileSystem = fs;
18
18
}
19
19
20
20
bool InternalStorage::begin (FileSystems fs){
21
- this -> fs = fs;
21
+ this -> fileSystem = fs;
22
22
return this -> begin ();
23
23
}
24
24
25
25
bool InternalStorage::begin (){
26
26
#if defined(ARDUINO_PORTENTA_C33)
27
27
this -> blockDevice = BlockDevice::get_default_instance ();
28
28
this -> userData = new MBRBlockDevice (this ->blockDevice , this ->partitionNumber );
29
- if (this -> fs == FS_FAT){
29
+ if (this -> fileSystem == FS_FAT){
30
30
this -> userDataFileSystem = new FATFileSystem (this ->partitionName );
31
31
} else {
32
32
this -> userDataFileSystem = new LittleFileSystem (this ->partitionName );
@@ -36,7 +36,7 @@ bool InternalStorage::begin(){
36
36
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
37
37
this -> blockDevice = QSPIFBlockDevice::get_default_instance ();
38
38
this -> userData = new mbed::MBRBlockDevice (this ->blockDevice , this ->partitionNumber );
39
- if (this -> fs == FS_FAT){
39
+ if (this -> fileSystem == FS_FAT){
40
40
41
41
if (this -> userDataFileSystem != nullptr ){
42
42
delete (this -> userDataFileSystem);
@@ -75,7 +75,7 @@ void InternalStorage::setQSPIPartitionName(const char * name){
75
75
bool InternalStorage::format (FileSystems fs){
76
76
this -> begin ();
77
77
this -> unmount ();
78
- this -> fs = fs;
78
+ this -> fileSystem = fs;
79
79
80
80
81
81
if (fs == FS_FAT){
0 commit comments