Home
last modified time | relevance | path

Searched refs:err_sector (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-2.7.6/components/wear_levelling/test_wl_host/
Dtest_wl.cpp145 int32_t err_sector = -1; variable
150 err_sector = i;
159 err_sector = i;
164 if (err_sector >= 0) {
179 if (i != err_sector) {
191 if (err_sector != -1) {
192 result |= wl_erase_range(wl_handle, err_sector * sector_size, sector_size);
194 uint32_t temp_data = err_sector * sector_size + add_const + m;
197 result |= wl_write(wl_handle, err_sector * sector_size, sector_data, sector_size);
202 … printf("[%3.f%%] err_sector=%i\n", (float)k / ((float)max_check_count) * 100.0f, err_sector);