Accept rabbit's fixes

This commit is contained in:
Will Miles
2026-01-31 20:33:28 -05:00
parent f2df029f26
commit a6b107e8df
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@
});
}
function hideforms() {
gId('bootupd').classList.toggle("hide");
gId('bootupd').classList.add("hide");
toggle('upd');
}
</script>

View File

@@ -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