Skip to content

Commit

Permalink
fixed isr hardfaut reading used and total FS bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
MNS26 committed Oct 21, 2024
1 parent 0a27e05 commit 7ae0a07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/webInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <WiFiClient.h>
#include <WebServer.h>
#include <LEAmDNS.h>
#include <string>
#include <SPI.h>
//#include <ArduinoJson.h>
#ifdef INCLUDE_FALLBACK_INDEX_HTM
Expand Down Expand Up @@ -118,9 +119,9 @@ void handleStatus() {
if (fsOK) {
fileSystem->info(fs_info);
json += F("\"true\", \"totalBytes\":\"");
json += F(fs_info.totalBytes);
json += static_cast<unsigned long>(fs_info.totalBytes);
json += F("\", \"usedBytes\":\"");
json += F(fs_info.usedBytes);
json += static_cast<unsigned long>(fs_info.usedBytes);
json += "\"";
} else {
json += "\"false\"";
Expand Down

0 comments on commit 7ae0a07

Please sign in to comment.