mirror of
https://github.com/wled/WLED.git
synced 2026-04-25 08:32:44 +00:00
Accept rabbit's fixes
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
});
|
||||
}
|
||||
function hideforms() {
|
||||
gId('bootupd').classList.toggle("hide");
|
||||
gId('bootupd').classList.add("hide");
|
||||
toggle('upd');
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -325,7 +325,7 @@ public:
|
||||
while (len && segmentsLeft) {
|
||||
if (segmentHeaderBytes < sizeof(esp_image_segment_header_t)) {
|
||||
size_t headerBytes = std::min(len, sizeof(esp_image_segment_header_t) - segmentHeaderBytes);
|
||||
memcpy(&segmentHeader, data, headerBytes);
|
||||
memcpy(reinterpret_cast<uint8_t*>(&segmentHeader) + segmentHeaderBytes, data, headerBytes);
|
||||
segmentHeaderBytes += headerBytes;
|
||||
if (segmentHeaderBytes < sizeof(esp_image_segment_header_t)) {
|
||||
return true; // needs more bytes for the header
|
||||
|
||||
Reference in New Issue
Block a user