]> granicus.if.org Git - esp-idf/commitdiff
Usless read removed.
authorDmitry <Dmitry@espressif.com>
Wed, 11 Jul 2018 05:55:35 +0000 (08:55 +0300)
committerDmitry <Dmitry@espressif.com>
Tue, 31 Jul 2018 05:45:43 +0000 (08:45 +0300)
components/wear_levelling/WL_Flash.cpp

index 80b25a62fb8a580a6fb31a5850b92ee176b677b7..6ba9c230926a5d312cddea7565a22f9cc730ae0b 100644 (file)
@@ -385,10 +385,6 @@ esp_err_t WL_Flash::updateV1_V2()
         WL_RESULT_CHECK(result);
         ESP_LOGD(TAG, "%s - move_count= 0x%08x, pos= 0x%08x", __func__, this->state.move_count, this->state.pos);
 
-        result = this->flash_drv->read(this->addr_state1, &this->state, sizeof(wl_state_t));
-        WL_RESULT_CHECK(result);
-        ESP_LOGI(TAG, "%s update result ver=%i, pos=%i", __func__, (uint32_t)this->state.version, (uint32_t)this->state.pos);
-        
         memset(this->temp_buff, 0, this->cfg.wr_size);
         for (uint32_t i=0 ; i<= pos; i++) {
             this->fillOkBuff(i);