From de756491d8f01404ef73387e38c186a2a5847eca Mon Sep 17 00:00:00 2001 From: andrey Date: Fri, 6 Nov 2020 16:22:28 +0300 Subject: [PATCH] esp_flash_get_chip_size --- libs/main/system/pisysteminfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/main/system/pisysteminfo.cpp b/libs/main/system/pisysteminfo.cpp index 8035ea86..4b428690 100644 --- a/libs/main/system/pisysteminfo.cpp +++ b/libs/main/system/pisysteminfo.cpp @@ -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 = spi_flash_get_chip_size(); + m.space_all = esp_flash_get_chip_size(); m.mount_point = "/"; ret << m; #endif