Skip to content

Commit

Permalink
Fix: Lint Error
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Nov 1, 2024
1 parent 2878807 commit 6c903ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ String Utils::generateMd5FromFile(String file)
md5.begin();

// Read the file in chunks to avoid using too much memory
const size_t bufferSize = 512;
uint8_t buffer[bufferSize];
uint8_t buffer[512];

while (f.available()) {
size_t bytesRead = f.read(buffer, bufferSize);
size_t bytesRead = f.read(buffer, sizeof(buffer) / sizeof(buffer[0]));
md5.add(buffer, bytesRead);
}

Expand Down

0 comments on commit 6c903ab

Please sign in to comment.