diff --git a/pages/security/disable-filesystem-ota.mdx b/pages/security/disable-filesystem-ota.mdx index ee8b6f2..62b735b 100644 --- a/pages/security/disable-filesystem-ota.mdx +++ b/pages/security/disable-filesystem-ota.mdx @@ -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); ``` All OTA modes are enabled by default on startup (cold boot). @@ -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 @@ -42,4 +42,4 @@ if(ElegantOTA.checkFilesystemMode() == true) { } else { Serial.println("Filesystem mode is disabled"); } -``` \ No newline at end of file +```