Skip to content

Commit

Permalink
Merge pull request #386 from mar0ni/master
Browse files Browse the repository at this point in the history
use debugPrintf instead of Serial.print* and fix format string
  • Loading branch information
LoQue90 authored Dec 5, 2023
2 parents c078617 + 94d7f56 commit f7b910e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2132,9 +2132,9 @@ void setup() {

enableTimer1();

Serial.println("Filesystem overview:");
Serial.printf("- Bytes total: ld\n", LittleFS.totalBytes());
Serial.printf("- Bytes used: %ld\n\n", LittleFS.usedBytes());
double fsUsage = ((double)LittleFS.usedBytes() / LittleFS.totalBytes()) * 100;
debugPrintf("LittleFS: %d%% (used %ld bytes from %ld bytes)\n",
(int)ceil(fsUsage), LittleFS.usedBytes(), LittleFS.totalBytes());
}


Expand Down

0 comments on commit f7b910e

Please sign in to comment.