mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
fix(espcoredump): fix incorrect pointer usage in checksum update call
This commit is contained in:
@@ -185,7 +185,7 @@ static esp_err_t esp_core_dump_flash_write_data(core_dump_write_data_t* wr_data,
|
|||||||
wr_data->off += COREDUMP_CACHE_SIZE;
|
wr_data->off += COREDUMP_CACHE_SIZE;
|
||||||
|
|
||||||
/* Update checksum with the newly written data on the flash. */
|
/* Update checksum with the newly written data on the flash. */
|
||||||
esp_core_dump_checksum_update(&wr_data->checksum_ctx, &wr_data->cached_data, COREDUMP_CACHE_SIZE);
|
esp_core_dump_checksum_update(&wr_data->checksum_ctx, wr_data->cached_data, COREDUMP_CACHE_SIZE);
|
||||||
|
|
||||||
/* Reset cache from the next use. */
|
/* Reset cache from the next use. */
|
||||||
wr_data->cached_bytes = 0;
|
wr_data->cached_bytes = 0;
|
||||||
|
Reference in New Issue
Block a user