From 56223ad67e0ff7a37c39f00a4b1038263805e88b Mon Sep 17 00:00:00 2001 From: andrey Date: Fri, 6 Nov 2020 17:32:20 +0300 Subject: [PATCH] esp --- libs/main/system/pisysteminfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/main/system/pisysteminfo.cpp b/libs/main/system/pisysteminfo.cpp index fba3ad48..9a1271f7 100644 --- a/libs/main/system/pisysteminfo.cpp +++ b/libs/main/system/pisysteminfo.cpp @@ -24,7 +24,7 @@ #ifdef ESP_PLATFORM # include "esp_system.h" -# include "esp_flash.h" +# include "esp_spi_flash.h" #endif #define SALT_SIZE 8 @@ -198,7 +198,7 @@ PIVector PISystemInfo::mountInfo(bool ignore_cache) { esp_chip_info_t chip_info; esp_chip_info(&chip_info); m.device = ((chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded SPI flash" : "external SPI flash"); - m.space_all = esp_flash_get_size(); + m.space_all = esp_flash_get_chip_size(); m.mount_point = "/"; ret << m; #endif