sforkowany z mirror/meshtastic-firmware
write readLength to debug console
rodzic
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;
|
||||||
|
|
Ładowanie…
Reference in New Issue