From f551a5147eb0b4dae4c2f634f3a05989474e450c Mon Sep 17 00:00:00 2001 From: cotestatnt Date: Sat, 13 Jan 2024 17:46:29 +0100 Subject: [PATCH] fix examples --- examples/customHTML/customHTML.ino | 6 +++--- examples/customOptions/customOptions.ino | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/customHTML/customHTML.ino b/examples/customHTML/customHTML.ino index fb73cf58..123f1561 100644 --- a/examples/customHTML/customHTML.ino +++ b/examples/customHTML/customHTML.ino @@ -83,9 +83,9 @@ bool startFilesystem() { */ #ifdef ESP32 void getFsInfo(fsInfo_t* fsInfo) { - fsInfo->totalBytes = LittleFS.totalBytes(); - fsInfo->usedBytes = LittleFS.usedBytes(); - strcpy(fsInfo->fsName, "LittleFS"); + fsInfo->fsName = "LittleFS"; + fsInfo->totalBytes = LittleFS.totalBytes(); + fsInfo->usedBytes = LittleFS.usedBytes(); } #endif diff --git a/examples/customOptions/customOptions.ino b/examples/customOptions/customOptions.ino index d802a11c..10e3047f 100644 --- a/examples/customOptions/customOptions.ino +++ b/examples/customOptions/customOptions.ino @@ -88,9 +88,9 @@ bool startFilesystem() { */ #ifdef ESP32 void getFsInfo(fsInfo_t* fsInfo) { - fsInfo->totalBytes = LittleFS.totalBytes(); - fsInfo->usedBytes = LittleFS.usedBytes(); - strcpy(fsInfo->fsName, "LittleFS"); + fsInfo->fsName = "LittleFS"; + fsInfo->totalBytes = LittleFS.totalBytes(); + fsInfo->usedBytes = LittleFS.usedBytes(); } #endif