Skip to content

Commit a36638e

Browse files
committed
Stop processing once an error is detected during bootloader upload
1 parent ff93a48 commit a36638e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wled00/ota_update.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,10 @@ void handleBootloaderOTAData(AsyncWebServerRequest *request, size_t index, uint8
628628
return;
629629
}
630630

631+
if (!context->errorMessage.isEmpty()) {
632+
return;
633+
}
634+
631635
// Buffer the incoming data
632636
if (context->buffer && context->bytesBuffered + len <= context->maxBootloaderSize) {
633637
memcpy(context->buffer + context->bytesBuffered, data, len);

0 commit comments

Comments
 (0)