esp32: Fix Partition.writeblocks() partial write corruption.
To simulate a partial erase, the code reads a native block, erases it,
and writes back the data before and after the erased area. However, the
current logic was filling the area after the erased block with data
from the beginning of the native block-aligned data, instead of applying
the proper offset.
Fixes #12474.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
Showing
Please register or sign in to comment