Stop processing once an error is detected during bootloader upload
This commit is contained in:
@@ -628,6 +628,10 @@ void handleBootloaderOTAData(AsyncWebServerRequest *request, size_t index, uint8
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!context->errorMessage.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Buffer the incoming data
|
// Buffer the incoming data
|
||||||
if (context->buffer && context->bytesBuffered + len <= context->maxBootloaderSize) {
|
if (context->buffer && context->bytesBuffered + len <= context->maxBootloaderSize) {
|
||||||
memcpy(context->buffer + context->bytesBuffered, data, len);
|
memcpy(context->buffer + context->bytesBuffered, data, len);
|
||||||
|
|||||||
Reference in New Issue
Block a user