Skip to content

Commit 706d9df

Browse files
authored
[AE-158] Fix spelling (#7)
* Fix spelling * Two more fixes
1 parent 4d8d486 commit 706d9df

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ The Arduino_UnifiedStorage library provides a unified interface to access differ
55

66
## Examples
77
* [**examples/SimpleStorageWriteRead**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/SimpleStorageWriteRead/SimpleStorageWriteRead.ino) - this example is concerned with reading/writing and seeking
8-
* [**examples/AdvancedUSBInternalOperations**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/AdvancedUSBInternalOperations/AdvancedUSBInternalOperations.ino) - this example is concerned with more advanced features like creating folders, traversing folder sturctures and moving/copying from one storage medium to another
9-
* [**examples/PortentaH7Logger**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/PortentaH7Logger/PortentaH7Logger.ino) - this is more of a real life usecase, where this library is used to log sensor data to a file on the internal storage and check if a USB Mass Storage deviece is inserted. If it is detected it will backup the information on the internal storage, only copying the bytes that are new since the last update.
8+
* [**examples/AdvancedUSBInternalOperations**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/AdvancedUSBInternalOperations/AdvancedUSBInternalOperations.ino) - this example is concerned with more advanced features like creating folders, traversing folder structures and moving/copying from one storage medium to another
9+
* [**examples/PortentaH7Logger**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/PortentaH7Logger/PortentaH7Logger.ino) - this is more of a real life usecase, where this library is used to log sensor data to a file on the internal storage and check if a USB Mass Storage device is inserted. If it is detected it will backup the information on the internal storage, only copying the bytes that are new since the last update.
1010
* [**examples/BackupInternalPartitions**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/BackupInternalPartitions/BackupInternalPartitions.ino) - Another real life usecase, where this library is used to back-up all partitions on the internal storage to a USB Mass Storage device.
1111

1212
## Instructions
@@ -18,13 +18,13 @@ The Arduino_UnifiedStorage library provides a unified interface to access differ
1818
* Flash the `QSPIFormat` example that can be found in the `STM32H747_System` folder (For Portenta H7/Opta/Giga)
1919
* Open the serial monitor and select answer with "n" when this appears "Do you want to use partition scheme 1? Y/[n]"
2020
* The sketch will warn you that the content of the QSPI flash will be erased. Answer with "Y".
21-
* When asked if you'd like to use LittleFS on the data parition, select "n". Most of the examples assume that the drive is formatted as FAT. You can use the library to format to LittleFS later.
21+
* When asked if you'd like to use LittleFS on the data partition, select "n". Most of the examples assume that the drive is formatted as FAT. You can use the library to format to LittleFS later.
2222
* Reboot the board
2323

2424
### Formatting the Portenta C33 Internal Storage
2525
* Flash the `QSPIFormat` example that can be found in the `Storage` folder for Portenta C33.
2626
* Open the Serial Monitor. The sketch will warn you that the content of the QSPI flash will be erased. Answer with "Y".
27-
* When asked if you'd like to use LittleFS on the data parition, select "n". Most of the examples assume that the drive is formatted as FAT. You can use the library to format to LittleFS later.
27+
* When asked if you'd like to use LittleFS on the data partition, select "n". Most of the examples assume that the drive is formatted as FAT. You can use the library to format to LittleFS later.
2828
* Reboot the board
2929

3030
## Features

docs/api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ Class representing a directory.
8888
`public String ` [`getPathString`](#class_folder_1a30dd952da8ae977dca4e3dfde8fbd5be)`()` | Returns the path of the file.
8989
`public ` [`Folder`](#class_folder)` ` [`createSubfolder`](#class_folder_1a78f2f9b297f62b67c2e0656b15a95868)`(const char * subfolderName, bool overwrite)` | Creates a subfolder in the directory.
9090
`public ` [`Folder`](#class_folder)` ` [`createSubfolder`](#class_folder_1ab50743664becb7b2a1fb564b5513d69c)`(String subfolderName, bool overwrite)` | Creates a subfolder in the directory.
91-
`public std::vector< ` [`UFile`](#class_u_file)` > ` [`getFiles`](#class_folder_1a3c2e01e19b48e3aa709cbdbb0acbdd78)`()` | Returns File objects for all files in the current dirctory.
92-
`public std::vector< ` [`Folder`](#class_folder)` > ` [`getFolders`](#class_folder_1a69d3df42dacbd1d64d0f527e090f1fbb)`()` | Returns [Folder](#class_folder) objects for all files in the current dirctory.
91+
`public std::vector< ` [`UFile`](#class_u_file)` > ` [`getFiles`](#class_folder_1a3c2e01e19b48e3aa709cbdbb0acbdd78)`()` | Returns File objects for all files in the current directory.
92+
`public std::vector< ` [`Folder`](#class_folder)` > ` [`getFolders`](#class_folder_1a69d3df42dacbd1d64d0f527e090f1fbb)`()` | Returns [Folder](#class_folder) objects for all files in the current directory.
9393
`public bool ` [`copyTo`](#class_folder_1aabf0818b7ee45b2d871e82e86edb4ebd)`(` [`Folder`](#class_folder)` destination, bool overwrite)` | Copies the current directory.
9494
`public bool ` [`copyTo`](#class_folder_1a058d193f53c559eefe343b30797500eb)`(const char * destination, bool overwrite)` | Copies the current directory.
9595
`public bool ` [`copyTo`](#class_folder_1a3162979e4c679c7f5503cc4584949714)`(String destination, bool overwrite)` | Copies the current directory.
@@ -128,7 +128,7 @@ Creates a file inside the directory.
128128
* `const` char * fileName - The name of the file to create.
129129

130130
#### Returns
131-
A File object if successfull, NULL if not.
131+
A File object if successful, NULL if not.
132132

133133
### `public ` [`UFile`](#class_u_file)` ` [`createFile`](#class_folder_1a44255e2c0c4ffa37d7637a601bc590f6)`(String fileName, FileMode fmode)` <a id="class_folder_1a44255e2c0c4ffa37d7637a601bc590f6" class="anchor"></a>
134134

@@ -138,7 +138,7 @@ Creates a file inside the directory.
138138
* `String` fileName - The name of the file to create.
139139

140140
#### Returns
141-
A File object if successfull, NULL if not.
141+
A File object if successful, NULL if not.
142142

143143
### `public bool ` [`remove`](#class_folder_1aca893daac6c6747895d50987cf9cf34c)`()` <a id="class_folder_1aca893daac6c6747895d50987cf9cf34c" class="anchor"></a>
144144

@@ -217,14 +217,14 @@ The created subfolder.
217217

218218
### `public std::vector< ` [`UFile`](#class_u_file)` > ` [`getFiles`](#class_folder_1a3c2e01e19b48e3aa709cbdbb0acbdd78)`()` <a id="class_folder_1a3c2e01e19b48e3aa709cbdbb0acbdd78" class="anchor"></a>
219219

220-
Returns File objects for all files in the current dirctory.
220+
Returns File objects for all files in the current directory.
221221

222222
#### Returns
223223
A std::vector of File objects representing the files in the directory.
224224

225225
### `public std::vector< ` [`Folder`](#class_folder)` > ` [`getFolders`](#class_folder_1a69d3df42dacbd1d64d0f527e090f1fbb)`()` <a id="class_folder_1a69d3df42dacbd1d64d0f527e090f1fbb" class="anchor"></a>
226226

227-
Returns [Folder](#class_folder) objects for all files in the current dirctory.
227+
Returns [Folder](#class_folder) objects for all files in the current directory.
228228

229229
#### Returns
230230
A std::vector of [Folder](#class_folder) objects representing the files in the directory.

examples/PortentaH7Logger/PortentaH7Logger.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ INSTRUCTIONS
1717
* This sketch will log data, and check if there is any USB MSD Device connected to the USB Port of the Opta.
1818
The USB device is mounted and unmounted after every update operation. The first status LED is on when the USB drive is mounted.
1919
So as long as the status LED is off you can safely remove the drive.
20-
The skecth will log to internal storage in the meantime, and wait for the USB drive to be inserted again.
20+
The sketch will log to internal storage in the meantime, and wait for the USB drive to be inserted again.
2121
*/
2222

2323
#include "Arduino_UnifiedStorage.h"

extras/tests/TestFileOperations/TestFileOperations.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void runTests(Arduino_UnifiedStorage * storage, String storageType) {
298298
testMovingFile(root);
299299

300300
Serial.println("\n========= FS Contents after File Tests =========");
301-
Serial.println("Should be empty if deletion was succesful");
301+
Serial.println("Should be empty if deletion was successful");
302302

303303
printFolderContents(root);
304304
Serial.println("=============================\n");

extras/tests/TestRepeatedFormatMount/TestRepeatedFormatMount.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void runRepeatedMountTest(Arduino_UnifiedStorage * storage, String storageType,
4242
Serial.println(umountResult);
4343
Serial.println(getErrno());
4444
} else {
45-
Serial.println("Succesfully unmounted");
45+
Serial.println("Successfully unmounted");
4646
}
4747
}
4848
}

extras/tests/TestUnified/TestUnified.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ InternalStorage * qspi = new InternalStorage();
1717
#endif
1818

1919

20-
void test(String opperation, Arduino_UnifiedStorage* sourceStorage, Arduino_UnifiedStorage* destinationStorage, const char* storageTypeA, const char* storageTypeB) {
20+
void test(String operation, Arduino_UnifiedStorage* sourceStorage, Arduino_UnifiedStorage* destinationStorage, const char* storageTypeA, const char* storageTypeB) {
2121
Serial.println("----------------------------------------------------------");
22-
Serial.println("Running test for " + opperation + " from " + String(storageTypeA) + " to " + String(storageTypeB) + "\n");
22+
Serial.println("Running test for " + operation + " from " + String(storageTypeA) + " to " + String(storageTypeB) + "\n");
2323

2424
int mountSource = sourceStorage -> begin();
2525
int mountDest = destinationStorage->begin();
@@ -36,18 +36,18 @@ void test(String opperation, Arduino_UnifiedStorage* sourceStorage, Arduino_Unif
3636
fileToMove.close();
3737

3838
int opperationResult = -1;
39-
if (opperation == "move") {
39+
if (operation == "move") {
4040
opperationResult = fileToMove.moveTo(destinationStorage->getRootFolder(), true);
4141
fileToMove.close();
4242
fileToMove.remove();
43-
} else if(opperation == "copy"){
43+
} else if(operation == "copy"){
4444
opperationResult = fileToMove.copyTo(destinationStorage->getRootFolder(), true);
4545
fileToMove.close();
4646
fileToMove.remove();
4747
}
4848

4949
if (opperationResult) {
50-
Serial.println(opperation + " from " + String(storageTypeA) + " to " + String(storageTypeB) + " successful");
50+
Serial.println(operation + " from " + String(storageTypeA) + " to " + String(storageTypeB) + " successful");
5151
}
5252

5353

src/Folder.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ class Folder {
3434
/**
3535
* @brief Creates a file inside the directory.
3636
* @param const char * fileName - The name of the file to create.
37-
* @return A File object if successfull, NULL if not.
37+
* @return A File object if successful, NULL if not.
3838
*/
3939
UFile createFile(const char * fileName, FileMode fmode);
4040

4141
/**
4242
* @brief Creates a file inside the directory.
4343
* @param String fileName - The name of the file to create.
44-
* @return A File object if successfull, NULL if not.
44+
* @return A File object if successful, NULL if not.
4545
*/
4646
UFile createFile(String fileName, FileMode fmode);
4747

@@ -101,13 +101,13 @@ class Folder {
101101
Folder createSubfolder(String subfolderName, bool overwrite = false);
102102

103103
/**
104-
* @brief Returns File objects for all files in the current dirctory.
104+
* @brief Returns File objects for all files in the current directory.
105105
* @return A std::vector of File objects representing the files in the directory.
106106
*/
107107
std::vector<UFile> getFiles();
108108

109109
/**
110-
* @brief Returns Folder objects for all files in the current dirctory.
110+
* @brief Returns Folder objects for all files in the current directory.
111111
* @return A std::vector of Folder objects representing the files in the directory.
112112
*/
113113
std::vector<Folder> getFolders();

0 commit comments

Comments
 (0)