Skip to content

Commit dd83662

Browse files
committed
Fix spelling mistakes
1 parent 3d332ea commit dd83662

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

examples/BackupInternalPartitions/BackupInternalPartitions.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
77
In the setup function, the code initializes serial communication, and registers a callback for the insertion of the USB Drive.
88
9-
If the device is succesfully mounted, a folder for this instance of a backup will be created on the USB Drive.
9+
If the device is successfully mounted, a folder for this instance of a backup will be created on the USB Drive.
1010
1111
Afterwards the sketch does the following:
1212
- lists all partitions available on the InternalStorage
1313
- mounts each partition
1414
- creates a sub folder for each partition,
15-
- copies everything on that partition to the coresponding subfolder.
15+
- copies everything on that partition to the corresponding subfolder.
1616
1717
The "addSomeFakeFiles" function generates random files in the specified folder, simulating real data.
1818
The "move" function is responsible for transferring folders and files between storage locations.
1919
2020
INSTRUCTIONS
2121
- Make sure you have "POSIXStorage" and "Arduino_UnifiedStorage" installed
2222
- Insert a USB Drive whenever you want
23-
- Wait for the sketch to finish, it will display the following "DONE, you can restart the board now" when succesful
23+
- Wait for the sketch to finish, it will display the following "DONE, you can restart the board now" when successful
2424
- Unplug the USB device and inspect its contents.
2525
2626
Created: 31th August 2023

examples/InternalStoragePartitioning/InternalStoragePartitioning.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
The code defines the following main functions:
1919
1. `testWriting`: This function tests writing to a file in a specified storage partition by creating a file, writing data to it, reading the data, and then removing the file.
2020
2. `testAllPartitions`: This function tests all partitions in a list of partitions by creating an InternalStorage object for each partition, mounting it, and testing file operations within each partition.
21-
3. `listPartitions`: This function reads the MBR sector on the QSPI drive and retrieves the partitioning scheme, if this sketch is succesful it should return exactly the partitioning scheme you created
21+
3. `listPartitions`: This function reads the MBR sector on the QSPI drive and retrieves the partitioning scheme, if this sketch is successful it should return exactly the partitioning scheme you created
2222
2323
2424
INSTRUCTIONS:

examples/Logger/Logger.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- If you are using this sketch on an Arduino OPTA, use another board or an USB adaptor to view RS485 messages
1515
- This sketch will log data, and check if there is any USB MSD Device connected to the USB Port of your board.
1616
- Insert a USB Drive whenever you want
17-
- Every 10 seconds data is transfered from the internal storage to the USB Mass storage device
17+
- Every 10 seconds data is transferred from the internal storage to the USB Mass storage device
1818
- Unplug the USB device and inspect its contents.
1919
2020
NOTES: The USB device is mounted and unmounted after every update operation. The first status LED is on when the USB drive is mounted.
@@ -143,7 +143,7 @@ void backupToUSB() {
143143
Folder usbRoot = usbStorage.getRootFolder();
144144
String folderName = "LoggerBackup" + String(random(9999));
145145
backupFolder = usbRoot.createSubfolder(folderName);
146-
printlnToSerialOrRS485("Succesfully created backup folder: " + backupFolder.getPathAsString());
146+
printlnToSerialOrRS485("Successfully created backup folder: " + backupFolder.getPathAsString());
147147
usbStorage.unmount();
148148
usbIntialized = true;
149149
}

src/Folder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ class Folder {
2323
/**
2424
* @brief Creates a directory with the specified name.
2525
* If the directory already exists, it returns a Folder object representing the existing directory.
26-
* Otherwise, it tries to create a new directory with the specified name. If it failes the `path` property of the Folder object will be null.
26+
* Otherwise, it tries to create a new directory with the specified name. If it fails the `path` property of the Folder object will be null.
2727
* @param const char * dirname - The name of the directory.
2828
*/
2929
Folder(const char * dirname);
3030

3131
/**
3232
* @brief Creates a directory with the specified name.
3333
* If the directory already exists, it returns a Folder object representing the existing directory.
34-
* Otherwise, it tries to create a new directory with the specified name. If it failes the `path` property of the Folder object will be empty.
34+
* Otherwise, it tries to create a new directory with the specified name. If it fails the `path` property of the Folder object will be empty.
3535
* @param String dirname - The name of the directory.
3636
*/
3737
Folder(String dirname);

src/InternalStorage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class InternalStorage : public Arduino_UnifiedStorage {
8383

8484

8585
/**
86-
* Creates one partition spaning over the whole size of the internal storage drive erasing the existing partitions.
86+
* Creates one partition spanning over the whole size of the internal storage drive erasing the existing partitions.
8787
* @return true if successful, false if failed.
8888
*/
8989
static bool partition();

0 commit comments

Comments
 (0)