mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 10:50:40 +00:00
write readLength to debug console
This commit is contained in:
parent
552406b15f
commit
d5f76b16b9
@ -791,10 +791,12 @@ void handleFormUpload(HTTPRequest *req, HTTPResponse *res)
|
||||
file.write(buf, readLength);
|
||||
fileLength += readLength;
|
||||
|
||||
DEBUG_MSG("readLength - %i", readLength);
|
||||
|
||||
// Abort the transfer if there is less than 50k space left on the filesystem.
|
||||
if (SPIFFS.totalBytes() - SPIFFS.usedBytes() < 51200) {
|
||||
file.close();
|
||||
res->println("<p>Write aborted! File is won't fit!</p>");
|
||||
res->println("<p>Write aborted! Reserving 50k on filesystem.</p>");
|
||||
|
||||
delete parser;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user