Skip to content

Commit

Permalink
Update disable-filesystem-ota.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsharma82 authored Nov 8, 2024
1 parent 2eb40b6 commit 0f64b47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/security/disable-filesystem-ota.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Using these functions you can enable or disable filesystem updates ( SPIFFS or L
#### Enable Filesystem OTA
```cpp
// Pass 'true' to enable Filesystem mode
ElegantOTA.setFilesystemMode(false);
ElegantOTA.setFilesystemMode(true);
```
<Callout>
All OTA modes are enabled by default on startup (cold boot).
Expand All @@ -31,7 +31,7 @@ ElegantOTA.setFilesystemMode(false);
#### Disable Filesystem OTA
```cpp
// Pass 'false' to disable Filesystem mode
ElegantOTA.setFilesystemMode(true);
ElegantOTA.setFilesystemMode(false);
```

#### Get Filesystem OTA mode status
Expand All @@ -42,4 +42,4 @@ if(ElegantOTA.checkFilesystemMode() == true) {
} else {
Serial.println("Filesystem mode is disabled");
}
```
```

0 comments on commit 0f64b47

Please sign in to comment.