mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 22:52:07 +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);
|
file.write(buf, readLength);
|
||||||
fileLength += readLength;
|
fileLength += readLength;
|
||||||
|
|
||||||
|
DEBUG_MSG("readLength - %i", readLength);
|
||||||
|
|
||||||
// Abort the transfer if there is less than 50k space left on the filesystem.
|
// Abort the transfer if there is less than 50k space left on the filesystem.
|
||||||
if (SPIFFS.totalBytes() - SPIFFS.usedBytes() < 51200) {
|
if (SPIFFS.totalBytes() - SPIFFS.usedBytes() < 51200) {
|
||||||
file.close();
|
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;
|
delete parser;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user