#include <stdio.h>\r
#include <stdlib.h>\r
#include <string.h>\r
-#include "esp_log.h"\r
-\r
-static const char *TAG = "Flash_Emulator";\r
\r
Flash_Emulator::Flash_Emulator(size_t size, size_t sector_sise, size_t min_size)\r
{\r
esp_err_t Flash_Emulator::write(size_t dest_addr, const void *src, size_t size)\r
{\r
esp_err_t result = ESP_OK;\r
- if ((size % this->min_size) != 0)\r
- {\r
+ if ((size % this->min_size) != 0) {\r
result = ESP_ERR_INVALID_SIZE;\r
- ESP_LOGE(TAG, "%s - wrond size, result=%08x, size=%08x", __func__, result, size);\r
return result; \r
}\r
- if ((dest_addr % this->min_size) != 0)\r
- {\r
+ if ((dest_addr % this->min_size) != 0) {\r
result = ESP_ERR_INVALID_SIZE;\r
- ESP_LOGE(TAG, "%s - wrong address, result=%08x, address=%08x", __func__, result, dest_addr);\r
return result; \r
}\r
if ((this->reset_count != 0x7fffffff) && (this->reset_count != 0)) {\r