Skip to content

Commit c7c3746

Browse files
committed
Begin the File System withouth restarting SARA module
1 parent 0e178fe commit c7c3746

File tree

3 files changed

+1935
-1956
lines changed

3 files changed

+1935
-1956
lines changed

libraries/SBU/examples/SBU_LoadBinary/SBU_LoadBinary.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void setup() {
2323
for(unsigned long now = millis(); !Serial && ((now - start) < 5000); now = millis()) { };
2424

2525
Serial.print("Accessing SARA Filesystem... ");
26-
if(!fileUtils.begin()) {
26+
if(!fileUtils.begin(false)) {
2727
Serial.println("failed.");
2828
return;
2929

libraries/SBU/extras/SBUBoot/SBUBoot.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main()
4949
// Try to update only if update file
5050
// has been download successfully.
5151

52-
if (fileUtils.existFile(CHECK_FILE_NAME)) {
52+
if (fileUtils.listFile(CHECK_FILE_NAME)) {
5353
uint32_t updateSize = fileUtils.listFile(UPDATE_FILE_NAME);
5454
uint32_t tot_bytes = 0;
5555
uint32_t read_bytes = 0;

0 commit comments

Comments
 (0)