MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / writeUploadData

Function writeUploadData

src/webInterface.cpp:338–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338bool writeUploadData(File &file, const uint8_t *data, size_t len, size_t written) {
339 if (!update) return file.write(data, len) == len;
340 if (launcherUpdateWrite(data, len) != len) {
341 displayRedStripe("FAIL 330");
342 launcherDelayMs(2000);
343 return false;
344 }
345 progressHandler(written + len, file_size);
346 return true;
347}
348
349bool beginUploadTarget(File &file, const String &filename) {
350 if (uploadFolder == "/") uploadFolder = "";

Callers 1

streamMultipartUploadFunction · 0.85

Calls 5

launcherUpdateWriteFunction · 0.85
displayRedStripeFunction · 0.85
launcherDelayMsFunction · 0.85
progressHandlerFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected