Skip to content

Commit a340dce

Browse files
committed
Rename variable
1 parent 3592f5b commit a340dce

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/InternalStorage.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ InternalStorage::InternalStorage(){
1414
InternalStorage::InternalStorage(int partition, const char * name, FileSystems fs){
1515
this -> setQSPIPartition(partition);
1616
this -> setQSPIPartitionName(name);
17-
this -> fs = fs;
17+
this -> fileSystem = fs;
1818
}
1919

2020
bool InternalStorage::begin(FileSystems fs){
21-
this -> fs = fs;
21+
this -> fileSystem = fs;
2222
return this -> begin();
2323
}
2424

2525
bool InternalStorage::begin(){
2626
#if defined(ARDUINO_PORTENTA_C33)
2727
this -> blockDevice = BlockDevice::get_default_instance();
2828
this -> userData = new MBRBlockDevice(this->blockDevice, this->partitionNumber);
29-
if(this -> fs == FS_FAT){
29+
if(this -> fileSystem == FS_FAT){
3030
this -> userDataFileSystem = new FATFileSystem(this->partitionName);
3131
} else {
3232
this -> userDataFileSystem = new LittleFileSystem(this->partitionName);
@@ -36,7 +36,7 @@ bool InternalStorage::begin(){
3636
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
3737
this -> blockDevice = QSPIFBlockDevice::get_default_instance();
3838
this -> userData = new mbed::MBRBlockDevice(this->blockDevice, this->partitionNumber);
39-
if(this -> fs == FS_FAT){
39+
if(this -> fileSystem == FS_FAT){
4040

4141
if(this -> userDataFileSystem != nullptr){
4242
delete(this -> userDataFileSystem);
@@ -75,7 +75,7 @@ void InternalStorage::setQSPIPartitionName(const char * name){
7575
bool InternalStorage::format(FileSystems fs){
7676
this -> begin();
7777
this -> unmount();
78-
this -> fs = fs;
78+
this -> fileSystem = fs;
7979

8080

8181
if(fs == FS_FAT){

src/InternalStorage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class InternalStorage : public Arduino_UnifiedStorage {
101101
#endif
102102

103103
char * partitionName;
104-
FileSystems fs;
104+
FileSystems fileSystem;
105105
};
106106

107107
#endif

0 commit comments

Comments
 (0)