]> granicus.if.org Git - esp-idf/commit
esp_partition_erase_range(): rename parameter "start_addr" to "offset"
authorMartin Thierer <martin@thierer.de>
Sat, 6 Jul 2019 10:22:23 +0000 (12:22 +0200)
committerAngus Gratton <gus@projectgus.com>
Mon, 8 Jul 2019 07:29:05 +0000 (17:29 +1000)
commitd6c2dad101d58c0d53cafbfdf3636b70cd975208
tree2866b4e7e300c1bd9c5bae02a0c4f23ff2131ded
parentf6ad7f564d9e8239f81b4fd92450e1dd9acaf30f
esp_partition_erase_range(): rename parameter "start_addr" to "offset"

The name "start_addr" (which goes straight into the docs) implies
it's an absolute address while in fact it's an offset into the
partition like what's used in all the other esp_partition_*
functions.

So in order to avoid confusion make the name consistent with the
parameter names used for the other partition functions and call it
"offset".

Merges https://github.com/espressif/esp-idf/pull/3750
components/spi_flash/include/esp_partition.h
components/spi_flash/partition.c